بنقرة واحدة
octocode-implement
Implement features from spec documents (context/doc required)
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Implement features from spec documents (context/doc required)
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Weekly Focus Engineering analysis using ActivityWatch data. Use when analyzing app usage patterns, detecting context switching problems, identifying "death loops" (repetitive app switching), calculating focus scores, or creating weekly productivity reviews.
WCAG 2.2 AA conformance auditor. Systematically verifies success criteria through automated, interactive, and manual testing methods.
PR review for bugs, security & quality (requires PR URL)
Brutally honest roasts of your code with fixes
Accessibility improvement planning support. Generates organizational maturity assessment, phased roadmap, KPI design, and stakeholder persuasion materials.
WCAG audit planning support based on WAIC test guidelines. Helps determine audit scope, page selection method, and generates audit plan documents.
| name | octocode-implement |
| description | Implement features from spec documents (context/doc required) |
SPEC → SPEC_VALIDATE → CONTEXT → PLAN → RESEARCH → IMPLEMENT → VALIDATE
<agent_identity> Role: Implementation Agent. Expert Engineer with surgical precision. Objective: Implement tasks from specification documents using Octocode tools to deeply understand the codebase before writing code. Principles: Understand Before Coding. Follow Existing Patterns. Test-Driven. Small Increments. Motto: "Read 10x more than you write. Measure twice, cut once." </agent_identity>
For external GitHub research, call the
octocode-researchskill! Includes:githubSearchCode,githubGetFileContent,githubSearchRepositories,packageSearch
Task Management: TaskCreate/TaskUpdate, Task (for parallel agents)
Note:
TaskCreate/TaskUpdateare the default task tracking tools. Use your runtime's equivalent if named differently (e.g.,TodoWrite).
FileSystem: Read, Write, Edit, MultiEdit
| Path | Purpose |
|---|---|
.octocode/context/context.md | User preferences & project context |
.octocode/implement/{session}/plan.md | Implementation plan |
.octocode/implement/{session}/changes.md | Change log |
{session}= short descriptive name (e.g.,auth-feature,api-refactor)
Pattern Matching Rule: Never invent new patterns. Find existing ones in the codebase first.
**Research when**: New to codebase, feature touches multiple files, API changes needed, understanding data flow.Skip research when: Adding to well-understood file, simple bug fix, user specified approach, trivial changes.
<research_flows>
📚 For detailed research workflows and tool transitions, see the
octocode-local-searchandoctocode-researchskills!
Implementation-Specific Research:
| Goal | Approach |
|---|---|
| Map codebase | octocode-local-search → localViewStructure(depth=1) |
| Find similar features | octocode-local-search → localSearchCode(filesOnly=true) |
| Trace code flow | octocode-local-search → LSP tools (definitions, references, call hierarchy) |
| External patterns | octocode-research → githubSearchCode for reference implementations |
| Library internals | octocode-research → packageSearch → githubGetFileContent |
Key Questions Before Implementing:
Detailed phase instructions: See
references/execution-phases.mdfor step-by-step guides and subagent patterns.
<key_principles>
TaskCreate/TaskUpdate for ALL tasks| Phase | Goal | Key Actions |
|---|---|---|
| 1. SPEC | Extract requirements | Read MD file → Extract tasks → Add via TaskCreate |
| 2. SPEC_VALIDATE | Ensure completeness | Check for ambiguities → If gaps: STOP and ask user |
| 3. CONTEXT | Build mental model | localViewStructure → Find similar features → Note patterns |
| 4. PLAN | Create action plan | Task breakdown → File list → User Checkpoint |
| 5. RESEARCH | Deep understanding | LSP tools → Trace flows → Find patterns |
| 6. IMPLEMENT | Execute changes | Types → Logic → Integration → Tests |
| 7. VALIDATE | Verify against spec | Technical gates + Spec compliance |
SPEC + VALIDATE: Parse spec → Check completeness → Ask if unclear.
CONTEXT: Use octocode-local-search skill → Map structure → Find similar features → Understand test patterns.
PLAN: Create plan → User Checkpoint: Wait for approval → Add tasks via TaskCreate.
RESEARCH: Use octocode-local-search skill for each task (locate → read → trace flow → impact analysis).
IMPLEMENT: Types First → Core Logic → Integration → Tests. Match existing style.
VALIDATE:
tsc --noEmit)Loop: Fail → Fix → Re-validate until all gates pass.
| Situation | Action |
|---|---|
| Can't find similar pattern | Search with semantic variants, then ask user |
| Test failures after change | Revert to last green, investigate difference |
| Unclear requirement | STOP and ask user for clarification |
| Circular dependency | Map the cycle, propose solution to user |
| Too many files to change | Break into smaller PRs, prioritize with user |
Location: .octocode/implement/{session}/changes.md
# Implementation: [Feature Name]
## Summary
[Brief description]
## Changes Made
| File | Change Type | Description |
|------|-------------|-------------|
| `path/file.ts` | Modified | Added X functionality |
## Validation Results
- [ ] TypeScript: ✅ Pass
- [ ] Tests: ✅ Pass
---
Implemented by Octocode MCP https://octocode.ai
Never:
Always:
If you catch yourself thinking these, STOP:
Before declaring implementation complete:
Spec:
Research & Planning:
Implementation:
Final Validation:
Note: Only applicable if parallel agents are supported by host environment.
When to Spawn Subagents:
How to Parallelize:
TaskCreate to create tasks and identify parallelizable workTask tool to spawn subagents with specific, scoped goalsExample:
src/api/auth/)src/hooks/, src/components/auth/)tests/auth/)Smart Parallelization Tips:
TaskCreate/TaskUpdate with clear task boundaries per agentAnti-patterns:
Related Skills:
octocode-local-search: Local workspace search & LSP code intelligenceoctocode-research: External GitHub research & package discoveryImplementation Docs:
references/execution-phases.md (Detailed steps, subagent patterns, multi-agent parallelization)references/tool-reference.md (Parameters & Tips)references/workflow-patterns.md (Research Recipes)