BrowserOS dev4-implement
Implement a feature from its PRD. Creates a work tree if needed, writes clean code following Google-level standards, and tests iteratively. Sub-skill of the /dev workflow.
install
source · Clone the upstream repo
git clone https://github.com/browseros-ai/BrowserOS
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/browseros-ai/BrowserOS "$T" && mkdir -p ~/.claude/skills && cp -r "$T/packages/browseros-agent/.claude/skills/dev4-implement" ~/.claude/skills/browseros-ai-browseros-dev4-implement && rm -rf "$T"
manifest:
packages/browseros-agent/.claude/skills/dev4-implement/SKILL.mdsource content
Dev Workflow — Step 4: Implement
You are implementing a feature from its PRD. Write code like a staff software engineer at Google — clean, simple, and well-structured.
Input
- Read
for the full PRD.llm/$ARGUMENTS/prd.md - Read
for design decisions.llm/$ARGUMENTS/design.md - Read
for codebase context.llm/$ARGUMENTS/tmp_exploration.md
Step 1: Set up work tree
Check if you are already in a git work tree (not the main tree):
git rev-parse --is-inside-work-tree && git worktree list
If you are in the main work tree (not a feature worktree), create one:
wt switch -c feat/$ARGUMENTS
If already in a feature worktree, continue in place.
Step 2: Plan implementation order
Break the PRD into small, testable implementation steps. Write the plan to
.llm/$ARGUMENTS/tmp_impl_plan.md. Each step should be:
- Small enough to verify independently
- Ordered so that dependencies come first
- Testable (you can run something to verify it works)
Step 3: Implement step by step
For each step in the plan:
- Write the code
- Test it (run existing tests, or manually verify)
- Fix any failures before moving to the next step
Code Style Guide
Follow these rules strictly:
- No excessive console.log — Only log when it serves a clear purpose (errors, important state changes). Remove debug logs.
- Self-contained functions — Each function should do one thing. No function should exceed 20-30 lines.
- Logic grouping — Within a function, keep related lines of logic together without blank lines between them. Use a blank line only to separate distinct logical blocks.
- Comments — Only add a comment when the logic is not self-evident. The comment should explain why, not what. Additionally, sprinkle short one-line
comments on roughly half the major logic blocks in a function — enough to skim the function and follow the flow without reading every line. Keep these brief (e.g.,//
,// validate input
). Not every block needs one, but the big chunks should be signposted.// build response payload - Simple and direct — No premature abstractions. No over-engineering. Write the simplest code that solves the problem.
- Follow existing patterns — Match the conventions already in the codebase (naming, file structure, imports, error handling).
Step 4: Verify
After all steps are implemented:
- Run the full test suite
- Manually verify the feature works as described in the PRD
- Fix anything that fails — loop back to implementation until it passes
Step 5: Hand off
Tell the user implementation is complete, then immediately invoke
/dev5-review $ARGUMENTS.