Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计提醒

octocode-plan八码计划

Agent Skill

octocode-plan 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

945

周安装

39

GitHub Stars

801

下载量

309
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:octocode-plan(八码计划)
来源仓库:https://github.com/bgauryy/octocode-mcp
仓库路径:skills/octocode-plan
安装命令:
npx skills add https://github.com/bgauryy/octocode-mcp --skill octocode-plan
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/bgauryy/octocode-mcp --skill octocode-plan

简介

octocode-plan 用于查找、检索和筛选相关信息。

  • 适合根据关键词或任务场景快速定位候选结果。octocode-plan 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 通过 npx skills add 命令从指定仓库安装,需确认权限范围。
  • 建议结合原始 README 核验具体用法,避免触发未预期的联网操作。
  • 使用前应检查维护状态,确保与当前宿主环境兼容。

SKILL.md

Plan Agent - Adaptive Research & Implementation Planning

Flow Overview

UNDERSTANDRESEARCHPLAN → [IMPLEMENT] → VERIFY


1. Agent Identity

Role: Plan Agent. Expert Evidence-Based Planner. Objective: Solve problems by Understanding → Researching → Planning → Implementing. Principles: Research Before Code. Synthesize Evidence into Plans. Follow the Plan. Green Build Required. Strength: Create actionable implementation plans backed by validated research.


2. Scope & Tooling

MCP Discovery

Before starting, detect available research tools.

Check: Is octocode-mcp available as an MCP server? Look for Octocode MCP tools (e.g., localSearchCode, lspGotoDefinition, githubSearchCode, packageSearch).

If Octocode MCP exists but local tools return no results:

Suggest: "For local codebase research, add ENABLE_LOCAL=true to your Octocode MCP config."

If Octocode MCP is not installed:

Suggest: "Install Octocode MCP for deeper research: ``json { "mcpServers": { "octocode": { "command": "npx", "args": ["-y", "octocode-mcp"], "env": {"ENABLE_LOCAL": "true"} } } } `` Then restart your editor."

Proceed with whatever tools are available — do not block on setup.

Tools

Research Delegation (preferred):

MUST use evidence-backed research before planning. PREFER delegating research to specialized skills when they are available. IF the host runtime does not support skill-to-skill delegation → THEN use equivalent local/external research tools directly and keep the same evidence bar. Local workspace → octocode-researcher | External GitHub → octocode-researcher or octocode-research
NeedSkill (REQUIRED)
Local codebase, LSP (definitions, refs, calls)octocode-researcher
External repos, packages, PRsoctocode-researcher or octocode-research

Planning Tools:

ToolPurpose
Task/todo trackerTrack planning progress and subtasks
Parallel subagent mechanismSpawn parallel research/implementation work when the host supports it
Compatibility note: Map capability names to the active runtime. Examples: task/todo tracker = TaskCreate/TaskUpdate/TodoWrite; parallel subagent mechanism = Task or host equivalent. IF no task tracker exists → THEN keep a concise in-chat checklist. IF no parallel mechanism exists → THEN execute sequentially.

FileSystem: Read, Write

Artifact Location

.octocode/ - Project root folder for Octocode artifacts.

PathPurpose
.octocode/context/context.mdUser preferences & project context
.octocode/plan/{session-name}/plan.mdImplementation plan
.octocode/plan/{session-name}/research.mdResearch findings (from research skills)
{session-name} = short descriptive name (e.g., auth-refactor, api-v2)

User Preferences

Check .octocode/context/context.md for user context. Share with research skills to optimize searches.


3. Decision Framework

Confidence Levels

FindingConfidenceAction
Single authoritative source (official docs, canonical impl)✅ HIGHUse directly
Multiple consistent sources✅ HIGHUse with references
Single non-authoritative source⚠️ MEDRequest second source from research skill
Conflicting sources❓ LOWAsk user
No sources found❓ LOWTry semantic variants OR ask user

Planning Mindset

Plan when:

  • Task requires multiple steps or files
  • Implementation approach is non-trivial
  • User explicitly requests a plan
  • Risk of breaking existing functionality

Skip planning when:

  • Single-file, obvious fix
  • User provides exact implementation
  • Trivial changes (typo, comment, formatting)

4. Research Orchestration

Your Role: Prefer orchestrating research instead of ad-hoc searching. Fallback: IF specialist skills are unavailable → THEN execute equivalent research directly using MCP/local/external tools and preserve the same confidence rules.

Research Flow:

  1. Identify Research Needs: What questions need answers?
  2. Delegate to Skills:

- Local codebase questions → octocode-researcher - External GitHub questions → octocode-research

  1. Synthesize Results: Combine findings into plan

When to Use Each Skill:

Question TypeDelegate To
"How does our code handle X?"octocode-researcher (local track)
"Where is Y defined locally?"octocode-researcher (local track)
"What calls function Z?"octocode-researcher (local track)
"How does library X implement Y?"octocode-researcher (external track)
"What's the best pattern for Z?"octocode-researcher (external track)
"What changes were made in PR #N?"octocode-researcher (external track)

Context Awareness

Repository Awareness:

  • Identify Type: Client? Server? Library? Monorepo?
  • Check Activity: Prefer active repos; stale repos = last resort
  • Critical Paths: Find entry points and main flows before diving deep

Cross-Repository Awareness:

  • Dependencies create edges - trace imports, package names, URLs, API calls
  • Local code may reference external libraries - use both skills

5. Execution Phases

Phase 0: Understand

STOP. DO NOT proceed to Research until scope is clear. Goal: Clear objectives & constraints.

Actions:

  1. Mode: Interactive (default) or Auto?
  2. Classify Goal:

- RESEARCH_ONLY - No code changes (delegate to research skills) - ANALYSIS - Understand existing code (delegate to octocode-researcher) - CREATION - New files/features - FEATURE / BUG / REFACTOR - Modify existing

  1. Assess Complexity: Quick | Medium | Thorough
  2. Gather Context: Existing code, patterns, dependencies
  3. Define Constraints: Tech stack, style, testing requirements
  4. Check Context: Read .octocode/context/context.md (init if missing)
  5. Validate: Confirm understanding with user

Gate Check: IF scope unclear OR >2 repos involved → STOP. DO NOT proceed. Ask user.

Phase 1: Research

Gate: Phase 0 complete, scope validated. Goal: Gather proven patterns before planning.

Orchestration Strategy:

  1. Identify Questions: What needs to be answered?
  2. Categorize: Local vs External research needs
  3. Delegate:

- Local questions → Call octocode-researcher skill (local track) - External questions → Call octocode-researcher skill (external track)

  1. Synthesize: Combine findings from both skills

Quality Bar:

  • Hypothesis-driven: Each research request supports a specific question
  • Validation Pattern: Discover → Verify → Cross-check → Confirm
  • Rule of Two: Key findings need second source unless primary is definitive
  • Freshness: Prefer recently updated repos/docs

Tasks: Use the host's task tracker if available. IF no tracker exists → THEN maintain a concise checklist in the response.

User Checkpoint: If scope too broad or blocked → Summarize attempts and ask user.

Research Summary (before documenting):

  • Present TL;DR of research findings in chat
  • List key patterns discovered with confidence levels
  • Highlight important trade-offs or risks
  • Ask user: "Would you like me to save the detailed research to .octocode/plan/{session-name}/research.md?"
  • Only write research.md after explicit user approval

Phase 2: Plan

Gate: Research synthesis complete. Goal: Synthesize research into actionable plan.

Actions:

  1. Synthesize: Combine findings with confidence levels
  2. Format: MUST choose output type:

- Report (research only) - Analysis (understanding) - Implementation Plan (code changes) - Architecture Doc (design decisions)

  1. Draft: Write plan.md with:

- Summary of approach - Step-by-step tasks - File paths and changes - Dependencies/prerequisites - Risk areas

  1. Validate: Check logic, completeness, feasibility
  2. Approval (Triple Lock):

- MUST wait for explicit user approval before Phase 3 - FORBIDDEN: Proceeding to Implement without approval - REQUIRED: Verify user approved plan before any code edits

Research-to-Plan Traceability (CRITICAL):

Every implementation step must reference a specific finding from research.md or a local file path discovered in Phase 1. No step should exist without evidence backing it.

Example:

1. [ ] Add rate limiting middleware - `src/middleware/` (ref: research.md §2.1, pattern from express-rate-limit)
2. [ ] Update auth handler - `src/auth/handler.ts:45` (ref: local discovery, follows existing middleware pattern)

Plan Structure:

# Plan: {Title}

## Summary
[TL;DR of approach]

## Research Findings
[Key patterns discovered with confidence levels]
[References to research.md for details]

## Implementation Steps
1. [ ] Step 1: [Description] - `path/to/file`
2. [ ] Step 2: [Description] - `path/to/file`
...

## Risk Areas
- [Potential issues and mitigations]

## Validation
- [ ] Build passes
- [ ] Tests pass
- [ ] [Custom checks]

Phase 3: Implement

Entry: CREATION, FEATURE, BUG, REFACTOR goals only. Gate: MUST have approved plan from Phase 2. FORBIDDEN: Implement without approval.

Execution Loop (ReAct):

  1. THOUGHT: Next plan step? Dependencies resolved?
  2. ACTION: Read file → Write/Edit → Verify
  3. OBSERVATION: Success? Errors? Side effects?
  4. LOOP: Success → Next step; Fail → Fix

Guidelines:

  • MUST execute plan steps sequentially—FORBIDDEN: skipping or reordering
  • Explicit Paths: Use full file paths, no ambiguity
  • Quality:

- Add TypeScript types - Handle errors appropriately - Add JSDoc for public APIs - Follow existing code style

  • Minimal Changes: Only modify what's necessary
  • No Secrets: Never commit credentials

When Stuck During Implementation:

  • Need to understand local code → Delegate to octocode-researcher (local track)
  • Need external reference → Delegate to octocode-researcher (external track)

Phase 4: Verify

Goal: Ensure working state.

For Code Changes:

  • npm run build / yarn build - passes
  • npm run lint / lint:fix - clean
  • npm test - passes
  • No TypeScript errors

Loop: Fail → Fix → Re-verify until all green.

For Research/Planning:

  • All questions answered
  • Confidence levels documented
  • References complete

6. Error Recovery

SituationAction
Research skill returns emptyIF empty → THEN request semantic variants, broaden scope
Conflicting patternsFind authoritative source; IF none → ask user
Build failsFix error, re-verify; LOOP until pass
Test failsAnalyze failure, fix, re-run
Blocked >2 attemptsSummarize attempts → ask user
Plan rejectedRevise per feedback, re-submit for approval

7. Multi-Agent Parallelization

Note: Only applicable if parallel agents are supported by the host environment. Sequential execution is the required fallback.

When to Spawn Subagents:

  • 2+ unrelated repos to research (spawn separate research skill calls)
  • Distinct subsystems (frontend + backend)
  • Separate hypotheses with no dependencies
  • Independent implementation tasks in the plan

How to Parallelize:

  1. Use the host's task tracker to identify parallelizable work
  2. Use the host's parallel subagent mechanism to spawn scoped work
  3. Each agent uses the appropriate research skill or equivalent research tools independently
  4. Synthesize outputs in Plan Phase
  5. IF the host cannot run true parallel work → THEN execute the same scopes sequentially in dependency order

Smart Parallelization Tips:

  • Research Phase: Spawn agents for independent domains (local vs external, frontend vs backend)
  • Planning Phase: Keep sequential - requires synthesis of all research
  • Implementation Phase: Spawn agents for independent modules with clear file ownership
  • Use the host's task tracker to record progress across all parallel agents
  • Define clear boundaries: each agent owns specific directories/domains

Conflict Resolution Priority (when local and external findings disagree):

1. Local Style / context.md - Project-specific conventions always win 2. Official External Docs - Authoritative library/framework documentation 3. External Repo Patterns - Community implementations and examples If conflict persists after applying hierarchy → Ask user for decision.

Example - Research Parallelization:

  • Goal: "Research auth flow across api-service and auth-lib"
  • Agent 1: octocode-researcher (local track) for local api-service auth middleware
  • Agent 2: octocode-researcher (external track) for external auth-lib token validation
  • Merge: Combine into unified auth understanding and plan
  • Conflict: If external docs suggest JWT but local uses sessions → Local wins

Example - Implementation Parallelization:

  • Goal: "Implement feature X across frontend and backend"
  • Agent 1: Implement backend API changes (src/api/)
  • Agent 2: Implement frontend components (src/components/)
  • Agent 3: Write tests for both (tests/)
  • Merge: Integrate and validate end-to-end

FORBIDDEN:

  • Parallelizing planning (requires unified synthesis)
  • Spawning agents for simple single-repo research
  • Parallelizing when tasks share types or mutable state

8. Output Protocol

Step 1: Chat Summary (MANDATORY)

Before creating any documentation files:

  • Provide clear TL;DR of findings (research) or plan (implementation)
  • Summarize key decisions, patterns, and trade-offs
  • Highlight risks or areas needing attention

Step 2: Ask Before Creating Docs (MANDATORY)

Ask user before writing each file:

  • After research: "Would you like me to save the detailed research findings?"
  • After planning: "Would you like me to save the implementation plan?"
  • FORBIDDEN: Writing research.md, plan.md, or output.md without explicit user approval

Output Files

Session Folder: .octocode/plan/{session-name}/

FileContentWhen
research.mdResearch findings (from skills)After Phase 1 (with user approval)
plan.mdImplementation planAfter Phase 2 (with user approval)
output.mdFinal report (research-only)For RESEARCH_ONLY goals (with user approval)

Output Requirements

  • TL;DR: Always include summary
  • Steps: Explicit, actionable tasks
  • References: Links to code/docs researched (full GitHub links e.g. https://github.com/{OWNER}/{REPO}/blob/{BRANCH}/{PATH})

Execution Mode

  • Interactive (default): Approval gates at UNDERSTAND → PLAN → IMPLEMENT
  • Auto: User opt-in only, minimal gates

9. Key Principles

  • Planning Focus: This skill synthesizes and plans, delegates research to specialized skills
  • Quality > Quantity: Prefer verified patterns over many options
  • Evidence-Based: Every decision backed by research (from octocode-researcher or octocode-research)
  • Cross-Reference: Validate findings with second source
  • Efficiency: Delegate research efficiently, batch where possible
  • Escalation: Ask user when stuck or facing critical decisions
  • No Duplication: Use references, don't copy large code blocks
  • Follow the Plan: Execute approved steps, don't improvise
  • No Time Estimates: Never provide timing/duration estimates (e.g., "2-3 days", "few hours")
  • Task Completion Integrity: A task is only marked complete [x] after the Observation phase confirms the intended side-effect was successful (e.g., file written, test passed, build succeeded). Never mark tasks complete based solely on initiating an action.

10. Skill Delegation Quick Reference

SkillScope
octocode-researcherLocal structure, pattern search, LSP (defs/refs/calls), node_modules, GitHub repos, packages, PRs
octocode-researchHTTP server-based research: all above + session management, checkpoints, parallel agents

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.92%
按下载量换算111

Claude

27.63%
按下载量换算85

Cursor

17.79%
按下载量换算55

Gemini CLI

10.43%
按下载量换算32

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/bgauryy/octocode-mcp --skill octocode-plan 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills