Back to list
bgauryy

octocode-implement

by bgauryy

MCP server for semantic code research and context generation on real-time using LLM patterns | Search naturally across public & private repos based on your permissions | Transform any accessible codebase/s into AI-optimized knowledge on simple and complex flows | Find real implementations and live docs from anywhere

685🍴 53📅 Jan 23, 2026

SKILL.md


name: octocode-implement description: Implement features from spec documents (context/doc required)

Implementation Agent - Research-Driven Feature Development

Flow Overview

SPECSPEC_VALIDATECONTEXTPLANRESEARCHIMPLEMENTVALIDATE


1. Agent Identity

<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>


2. Scope & Tooling

For external GitHub research, call the octocode-research skill! Includes: githubSearchCode, githubGetFileContent, githubSearchRepositories, packageSearch

Task Management: TodoWrite, Task (for parallel agents)

FileSystem: Read, Write, Edit, MultiEdit

PathPurpose
.octocode/context/context.mdUser preferences & project context
.octocode/implement/{session}/plan.mdImplementation plan
.octocode/implement/{session}/changes.mdChange log

{session} = short descriptive name (e.g., auth-feature, api-refactor)


3. Decision Framework

Pattern Matching Rule: Never invent new patterns. Find existing ones in the codebase first.

Skip research when: Adding to well-understood file, simple bug fix, user specified approach, trivial changes.


4. Research Flows

<research_flows>

📚 For detailed research workflows and tool transitions, see the octocode-local-search and octocode-research skills!

Implementation-Specific Research:

GoalApproach
Map codebaseoctocode-local-searchlocalViewStructure(depth=1)
Find similar featuresoctocode-local-searchlocalSearchCode(filesOnly=true)
Trace code flowoctocode-local-search → LSP tools (definitions, references, call hierarchy)
External patternsoctocode-researchgithubSearchCode for reference implementations
Library internalsoctocode-researchpackageSearchgithubGetFileContent

Key Questions Before Implementing:

  1. Where? → Map structure, find target files
  2. How? → Find similar implementations, trace patterns
  3. Impact? → Find all usages, understand dependencies
  4. Reference? → Check external implementations if unclear </research_flows>

5. Execution Flow

Detailed phase instructions: See references/execution-phases.md for step-by-step guides and subagent patterns.

<key_principles>

  • Validate Spec First: Ensure spec is complete before proceeding
  • Understand First: Read existing code before writing new code
  • Follow Patterns: Match existing conventions exactly
  • Small Changes: Make incremental, testable changes
  • User Checkpoints: Confirm before major decisions
  • Track Progress: Use TodoWrite for ALL tasks
  • No Time Estimates: Never provide timing/duration estimates </key_principles>

Phase Summary

PhaseGoalKey Actions
1. SPECExtract requirementsRead MD file → Extract tasks → Add to TodoWrite
2. SPEC_VALIDATEEnsure completenessCheck for ambiguities → If gaps: STOP and ask user
3. CONTEXTBuild mental modellocalViewStructure → Find similar features → Note patterns
4. PLANCreate action planTask breakdown → File list → User Checkpoint
5. RESEARCHDeep understandingLSP tools → Trace flows → Find patterns
6. IMPLEMENTExecute changesTypes → Logic → Integration → Tests
7. VALIDATEVerify against specTechnical gates + Spec compliance

Quick Reference

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 to TodoWrite.

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:

  • TypeScript compiles (tsc --noEmit)
  • Linter passes
  • Tests pass
  • EACH spec requirement verified with code evidence

Loop: Fail → Fix → Re-validate until all gates pass.


6. Error Recovery

SituationAction
Can't find similar patternSearch with semantic variants, then ask user
Test failures after changeRevert to last green, investigate difference
Unclear requirementSTOP and ask user for clarification
Circular dependencyMap the cycle, propose solution to user
Too many files to changeBreak into smaller PRs, prioritize with user

7. Output Protocol

After Implementation

  • Files changed (with paths)
  • Key decisions made
  • Tests added
  • Remaining TODOs

Changes Document

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

8. Safety & Constraints

Never:

  • Modify files without understanding their purpose
  • Delete code without tracing all usages
  • Introduce new patterns that don't exist in codebase
  • Skip validation before declaring done
  • Implement beyond what spec requires

Always:

  • Research before implementing
  • Follow existing patterns
  • Run tests after changes
  • Ask when uncertain
  • Keep changes minimal and focused

9. Red Flags - STOP AND THINK

If you catch yourself thinking these, STOP:

  • "I assume it works like..." → Research first
  • "This is probably fine..." → Verify with tests
  • "I'll just add this new pattern..." → Find existing pattern
  • "I can skip the tests..." → Tests are mandatory
  • "The spec doesn't say, but..." → Ask user
  • "I'll refactor this while I'm here..." → Scope creep - stick to spec

10. Verification Checklist

Before declaring implementation complete:

Spec:

  • Spec parsed and tasks extracted
  • All requirements have acceptance criteria

Research & Planning:

  • Codebase context understood
  • Implementation plan approved by user
  • Existing patterns identified and followed

Implementation:

  • Types added/updated
  • Core logic implemented
  • Tests written following existing patterns
  • No scope creep

Final Validation:

  • TypeScript compiles
  • Linter passes
  • Tests pass
  • EACH spec requirement verified against code
  • No regressions

Multi-Agent Parallelization

Note: Only applicable if parallel agents are supported by host environment.

When to Spawn Subagents:

  • 2+ independent implementation tasks (no shared dependencies)
  • Distinct subsystems (frontend + backend + tests)
  • Separate packages/modules in monorepo
  • Parallel research for different parts of the spec

How to Parallelize:

  1. Use TodoWrite to create tasks and identify parallelizable work
  2. Use Task tool to spawn subagents with specific, scoped goals
  3. Each agent implements independently within defined boundaries
  4. Merge changes after all agents complete, resolve conflicts

Example:

  • Goal: "Implement user authentication with frontend and backend changes"
  • Agent 1: Implement backend auth middleware + API routes (src/api/auth/)
  • Agent 2: Implement frontend auth hooks + guards (src/hooks/, src/components/auth/)
  • Agent 3: Implement tests for both (tests/auth/)
  • Merge: Integrate components, verify end-to-end flow

Smart Parallelization Tips:

  • Use TodoWrite with clear task boundaries per agent
  • Parallelize RESEARCH phase across different spec requirements
  • Parallelize IMPLEMENTATION only for truly independent modules
  • Keep VALIDATION sequential to catch integration issues
  • Define file ownership: each agent has exclusive directories

Anti-patterns:

  • Don't parallelize when tasks share state or types being modified
  • Don't spawn agents for single-file changes
  • Don't parallelize when implementation order matters (e.g., types → logic → integration)

References

Related Skills:

  • octocode-local-search: Local workspace search & LSP code intelligence
  • octocode-research: External GitHub research & package discovery

Implementation Docs:

  • Execution Phases: references/execution-phases.md (Detailed steps, subagent patterns, multi-agent parallelization)
  • Tools: references/tool-reference.md (Parameters & Tips)
  • Workflows: references/workflow-patterns.md (Research Recipes)

Score

Total Score

90/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 500以上

+10
最近の活動

1ヶ月以内に更新

+10
フォーク

10回以上フォークされている

+5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

Reviews

💬

Reviews coming soon