Token导航 LogoToken导航

Agent Skill · 研究检索

superplan(superplan 搜索)

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

superplan 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证为 MIT,第三方扫描有未通过项,按安装量在研究检索类的 73,675 个 Skill 里排第 64,068。

总安装 306周安装 13GitHub Stars 7下载 107核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/adamos486/skills --skill superplan

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

superplan 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。适用于启动新功能、复杂多阶段任务,以及需要多个代理并行执行的场景。通过生成详细可执行的实施方案,涵盖需求、架构、代码变更、测试和验收标准。

安装命令:npx skills add https://github.com/adamos486/skills --skill superplan。建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

来源仓库内路径:skills/superplan

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/adamos486/skills --skill superplan;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

superplan 怎么安装?

在终端执行 npx skills add https://github.com/adamos486/skills --skill superplan。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

superplan 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

superplan 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

superplan 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

superplan 用的人多吗?

公开数据是累计安装 306 次,近一周安装 13 次,下载 107 次,GitHub 7 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

superplan 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
superplan

superplan 搜索 · 本页

3067操作浏览器MIT未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Superplan: Comprehensive Feature Planning

Overview

Superplan creates detailed, executable implementation plans that enable parallel agent execution. Each plan includes everything needed to implement a feature: requirements, architecture, code changes, tests, and acceptance criteria.

When to Use Superplan

  • Starting a new feature or epic
  • Complex tasks requiring multiple phases
  • Tasks that could benefit from parallel execution by multiple agents
  • When you need comprehensive documentation of implementation decisions
  • When the team needs to understand the full scope before committing

Core Workflow

┌─────────────────────────────────────────────────────────────────────┐
│                         SUPERPLAN WORKFLOW                          │
├─────────────────────────────────────────────────────────────────────┤
│  1. INTAKE          →  Gather story/requirements from user          │
│  2. DETECT          →  Check CLAUDE.md/AGENTS.md first, then scan   │
│                        (BYPASS codebase scan if docs complete)      │
│  3. INTERVIEW       →  Ask clarifying questions                     │
│  4. RESEARCH        →  Look up best practices for DETECTED STACK    │
│                        (BYPASS if CLAUDE.md/AGENTS.md was complete) │
│  5. EXPLORE         →  Understand existing codebase patterns        │
│                        (ALWAYS runs - never bypassed)               │
│  6. REFACTOR ASSESS →  Evaluate if refactoring should precede work  │
│  7. ARCHITECT       →  Design solution with diagrams                │
│  8. PHASE           →  Break into parallelizable phases + ESTIMATES │
│  9. DETAIL          →  Specify code deltas per phase                │
│ 10. TEST            →  Define failing tests per phase (TDD)         │
│ 11. DOCUMENT        →  Write plan to docs/<feature>-plan.md         │
└─────────────────────────────────────────────────────────────────────┘

CRITICAL: Parallel Execution with Sub-Agents

YOU MUST USE SUB-AGENTS OR PARALLEL TASKS for every parallelizable operation:

OperationHow to Execute
Independent file readsLaunch multiple Read tasks in single message
Code searchesUse Task tool with multiple Explore agents in parallel
Parallel phases (1A, 1B, 1C)Execute using parallel sub-agents
Independent test suitesRun unit/integration/e2e concurrently

Example: "Launch 3 sub-agents in parallel to implement Phases 1A, 1B, and 1C"

IMPORTANT: Each sub-agent MUST return its conventional commit message upon completion. The main agent MUST output all commit messages to the user. See Phase Completion: Conventional Commit Message.


Poker Planning Estimates

All tasks and phases MUST include Fibonacci estimates: 1, 2, 3, 5, 8, 13, 21

SizeMeaningExample
1TrivialConfig value, typo fix
2SmallSingle file, simple function
3MediumMulti-file, new component
5LargeFeature module, API endpoint
8X-LargeComplex feature with dependencies
13Epic chunkMajor subsystem change
21Too bigSplit into smaller tasks

Phase 1: INTAKE - Gather Requirements

What You're Doing

Collecting the feature requirements from the user through story input.

Actions

  1. Ask the user to provide their story/requirements using one of these methods:

- Copy/paste the story text directly - Provide a link to a ticket/story (Jira, Linear, GitHub Issue, etc.) - Use an MCP tool to fetch the story if available - Describe the feature verbally

  1. Capture the raw input exactly as provided
  2. Identify the story type:

- User Story (As a <role>, I want <capability>, so that <benefit>) - Technical Task (implementation-focused) - Bug Fix (problem/solution) - Epic (large feature with sub-stories)

Output

Document: Source, Type, Raw Requirements, Initial Understanding (1-2 sentences).


Phase 2: DETECT - Technology Stack Analysis

What You're Doing

Identifying the technology, programming language, and major frameworks to inform best practices research and quality gate setup.

Detection Flow

┌─────────────────────────────────────────────────────────────────────────────┐
│                         DETECT PHASE FLOW                                    │
├─────────────────────────────────────────────────────────────────────────────┤
│  1. CHECK for CLAUDE.md or AGENTS.md in project root                        │
│     ├─ Found & Complete? → BYPASS codebase scanning for tech stack          │
│     │                   → BYPASS internet research (Phase 4)                │
│     │                   → Proceed directly to INTERVIEW (Phase 3)           │
│     └─ Not Found or Incomplete? → Continue with Detection Actions below     │
│                                                                             │
│  NOTE: This does NOT bypass EXPLORE phase (Phase 5) - always scan codebase  │
│        for patterns and integration points regardless of CLAUDE.md presence │
└─────────────────────────────────────────────────────────────────────────────┘

Step 1: Check for Project Documentation Files

FIRST, check for CLAUDE.md or AGENTS.md at project root:

# Check for these files (in priority order):
1. CLAUDE.md   # Claude Code's project documentation
2. AGENTS.md   # Codex's project documentation

If found, parse for these tech stack elements:

ElementWhat to Look For
Languages"TypeScript", "Python", "Go", etc. in project description
FrameworksFramework mentions: React, Next.js, FastAPI, Django, etc.
Build ToolsPackage manager, bundler references: npm, pnpm, vite, etc.
Quality ToolsLinter/formatter/type checker config mentions
Testing ToolsTest framework references: jest, pytest, vitest, etc.
DependenciesKey libraries and their versions

Completeness Check

A project documentation file is COMPLETE for tech stack if it answers ALL of:

  • Primary language(s) identified
  • Major framework(s) identified (if applicable)
  • Build/package tools identified
  • Quality tools identified (linter, formatter, type checker)
  • Test framework identified

If ALL boxes can be checked from the file → Skip to Step 3 (output) and mark RESEARCH phase (Phase 4) as BYPASSED

If ANY box is missing → Continue with Step 2 (codebase detection)

Step 2: Detection Actions (USE PARALLEL SUB-AGENTS)

Only execute if CLAUDE.md/AGENTS.md is missing or incomplete.

Launch parallel Explore agents to detect:

  1. Languages - Primary language(s): TypeScript, Python, Go, Rust, Java, etc.
  2. Frameworks - Major frameworks: React, Next.js, FastAPI, Django, Express, etc.
  3. Build Tools - Package managers, bundlers: npm, pnpm, yarn, webpack, vite, etc.
  4. Quality Tools - Existing linters, formatters, type checkers:

- Linters: eslint, ruff, golint, pylint - Formatters: prettier, black, gofmt, rustfmt - Type checkers: tsc (TypeScript), mypy (Python), go vet

  1. Testing Tools - Test frameworks: jest, pytest, go test, vitest, playwright

Quality Tools Assessment

Tool TypeIf PresentIf Missing
LinterNote config pathAdd to Phase 0 Bootstrap
FormatterNote config pathAdd to Phase 0 Bootstrap
Type CheckerNote config pathAdd to Phase 0 Bootstrap
Test FrameworkNote config pathAdd to Phase 0 Bootstrap

Step 3: Output

Document:

  • Source: CLAUDE.md/AGENTS.md or codebase scan
  • Languages, frameworks, build tools, quality tools (present/missing), testing setup
  • Bootstrap requirements
  • Research bypass status: If CLAUDE.md/AGENTS.md provided complete info, note "RESEARCH PHASE BYPASSED - tech stack from project documentation"

Phase 3: INTERVIEW - Clarifying Questions

What You're Doing

Asking targeted questions to fill gaps in requirements before planning.

Question Categories

Ask questions in these categories (select relevant ones):

  1. Scope & Boundaries - MVP, out of scope, related features
  2. User Experience - Primary users, user flow, mockups/designs
  3. Technical Constraints - Performance, security, compliance, integrations
  4. Data & State - Data sources, storage, migrations
  5. Testing & Validation - Success criteria, test scenarios, sign-off
  6. Dependencies - Blockers, external services, sequencing
  7. Quality Gates - Existing CI/CD, required checks, coverage thresholds

How to Interview

Ask 3-5 most relevant questions, then wait for answers before proceeding.

See Interview Guide for comprehensive question templates and strategies by feature size.


Phase 4: RESEARCH - Best Practices Lookup

What You're Doing

Researching current best practices as of TODAY'S DATE for the DETECTED technology stack.

BYPASS Condition

If DETECT phase found complete tech stack info in CLAUDE.md or AGENTS.md, this phase is BYPASSED.

Skip directly to EXPLORE (Phase 5). The project documentation provides authoritative tech stack information.

Otherwise, proceed with research actions below.

Research Actions (USE PARALLEL WEB SEARCHES)

Launch parallel web searches targeting the detected stack:

  1. [Language] [YEAR] best practices - e.g., "TypeScript 2025 best practices"
  2. [Framework] [YEAR] patterns - e.g., "React 2025 patterns"
  3. [Framework] security guidelines - e.g., "Next.js security OWASP"
  4. [Language] testing best practices - e.g., "Python pytest 2025"

Research Areas

  1. Industry Standards - Current best practices, security (OWASP), accessibility (WCAG)
  2. Technology-Specific - Framework patterns, library versions, known gotchas
  3. Architecture Patterns - Recommended patterns, anti-patterns, scalability
  4. Quality Tool Configs - Recommended linter/formatter configs for detected stack

Output

Document: Sources consulted, key findings by topic, specific recommendations for this feature.


Phase 5: EXPLORE - Codebase Analysis

What You're Doing

Understanding existing patterns, conventions, and integration points in the codebase.

Exploration Targets

  1. Existing Patterns - How similar features are implemented, conventions, testing patterns
  2. Integration Points - Files/modules to touch, API contracts, shared utilities
  3. Technical Debt - Areas needing refactoring, known issues affecting this work

Output

Document: Relevant files table, patterns to follow, integration points, technical debt notes.


Phase 6: REFACTOR/REWRITE ASSESSMENT

What You're Doing

Evaluating whether the feature/fix would benefit from refactoring or rewriting existing code BEFORE implementation. This phase synthesizes your research on best practices with your exploration of the codebase to make a data-driven refactoring decision.

CRITICAL: Be Bold

This phase empowers you to proactively recommend refactoring. Don't be timid—if the code needs work, say so. Use the Q&A system to discuss major refactoring opportunities with the user.

Assessment Process (USE PARALLEL WEB SEARCHES)

Step 1: Research Refactoring for Detected Stack

Launch parallel web searches for stack-specific refactoring:

  • [Language] refactoring patterns 2025 - e.g., "TypeScript refactoring patterns 2025"
  • [Framework] code smells - e.g., "React code smells anti-patterns"
  • [Dependency] migration guide - For major dependencies that may need updating

Step 2: Apply Code Smell Detection

Using your exploration results, check for these smells in affected areas:

CategorySmells to Check
BloatersLong methods, large classes, primitive obsession, data clumps
OO AbusersSwitch statements on types, parallel inheritance hierarchies
Change PreventersDivergent change, shotgun surgery
DispensablesDuplicate code, dead code, speculative generality
CouplersFeature envy, inappropriate intimacy, message chains

Step 3: AI Slop Analysis (Optional Enhancement)

Check if the slop-or-not skill is available to enhance refactor detection:

  1. Check Availability: Attempt to invoke /slop-or-not

- If not installed, inform the user: "The slop-or-not skill can enhance refactor assessment by detecting AI-generated code anti-patterns (hallucinations, cross-language contamination, security vulnerabilities). Install from: https://github.com/asteroid-belt/skills Would you like to pause to install it? (y/n)" - If user says yes: Wait for installation, then re-check - If user says no or skill unavailable: Skip to Step 4, note "Slop analysis: SKIPPED (skill not installed)"

  1. Run Slop Scan: If available, invoke /slop-or-not targeting:

- Files identified in EXPLORE phase as modification candidates - Areas flagged with code smells in Step 2

  1. Apply Reciprocal Rank Fusion: Combine modification paths with slop findings: RRF_score(file) = 1/(60 + modification_rank) + 1/(60 + slop_rank) Files appearing in BOTH lists (need modification AND contain AI slop) score highest.
  2. Output Combined Priority List: Rank refactor candidates by RRF score, noting:

- Modification necessity (from architect analysis) - Slop confidence level (CRITICAL/HIGH/MEDIUM/LOW) - Specific anti-patterns detected (hallucinations, cross-language, security, etc.)

Step 4: Architecture Assessment

Evaluate:

  • Does the current architecture cleanly support this feature?
  • Will implementing this feature increase technical debt?
  • Are there architectural patterns being violated?
  • Is there a cleaner abstraction that would help?

Step 5: Future Roadmap Interview

ASK THE USER about upcoming features that might tip the scales toward refactoring:

"Before I finalize the plan, I want to understand your roadmap: 1. What other features are planned for this area in the next 6 months? 2. How often does this part of the codebase change? 3. Are there pain points here that slow down development? 4. What's your risk tolerance for refactoring vs. shipping fast?"

This information is CRITICAL for making the right refactoring decision.

Decision Framework

ScenarioRecommendation
Feature adds code to messy areaRefactor first
Modification path has HIGH/CRITICAL AI slopRefactor first
Feature touches well-structured codeImplement directly
Multiple upcoming features need same areaRefactor first
Team struggles to understand the codeRefactor first
One-off change to stable codeImplement directly
Tight deadline, low complexityImplement, document debt
Tight deadline, high complexityDiscuss trade-offs with user

Refactoring Confidence Levels

Based on your assessment, declare a confidence level:

LevelDescriptionAction
LOWCode is clean, feature fits naturallyProceed to ARCHITECT
MEDIUMSome smells present, feature workableNote debt, ask user preference
HIGHSignificant issues, feature will worsen debtRecommend refactor phases
CRITICALMajor rewrite needed, current approach unsustainablePropose rewrite with Mikado/Strangler Fig

When Confidence is HIGH or CRITICAL

If you determine refactoring should precede the feature work:

  1. Ask permission explicitly: "Based on my analysis, I recommend refactoring [specific area] BEFORE implementing [feature]. This would involve: [Refactoring task 1] [Refactoring task 2] Benefits: [list benefits] Risks of NOT refactoring: [list risks] Do you want me to add refactoring phases to the plan?"
  2. If approved, prepend refactoring phases (Phase 0A, 0B, etc.) before feature phases
  3. Select appropriate methodology:

- Mikado Method: For complex, interconnected changes where you need to discover dependencies - Strangler Fig: For replacing entire subsystems incrementally - Branch by Abstraction: For swapping implementations behind interfaces - Standard Refactoring: For isolated code smell fixes

Output

Document:

  • Code smells found (with file locations)
  • AI slop findings (with confidence scores) - if slop-or-not available
  • Combined refactor priority list (RRF-ranked) - if slop-or-not available
  • Architecture assessment summary
  • Future roadmap impact analysis
  • Refactoring confidence level (LOW/MEDIUM/HIGH/CRITICAL)
  • Recommended refactoring methodology (if applicable)
  • User's decision on refactoring

See Refactoring Research for comprehensive methodology details, code smell catalogs, and technology-specific patterns.


Phase 7: ARCHITECT - Solution Design

What You're Doing

Designing the technical solution with diagrams.

Architecture Components

  1. High-Level Architecture - System/component diagram, data flow
  2. API Design (if applicable) - Endpoints, request/response schemas, error handling
  3. Data Model (if applicable) - Schema changes, migrations
  4. Component Design (if applicable) - Component hierarchy, state management, interfaces

Diagram Format

Use ASCII/text diagrams for portability. See Plan Template for diagram examples.


Phase 8: PHASE - Parallel Work Breakdown with Estimates

What You're Doing

Breaking work into phases with poker estimates that can be executed in parallel where possible.

Phase Design Principles

  1. Independence: Phases executable without waiting for others when possible
  2. Testability: Each phase independently testable
  3. Clear Boundaries: Well-defined inputs and outputs
  4. Estimated Size: Each phase with poker estimate (target: 3-8 points)
  5. Quality Gated: Each phase includes Definition of Done

Parallelization Rules (CRITICAL: USE SUB-AGENTS)

  • CAN parallelize: Independent components, separate API endpoints, unrelated tests

- Execute with parallel sub-agents

  • CANNOT parallelize: Sequential dependencies, shared state setup, migrations before data access

Output

Create a phase dependency diagram showing:

  • Phase 0 (Bootstrap/Setup) at top - CONDITIONAL: only if quality tools missing
  • Parallel phases branching out
  • Integration phase at bottom

Include dependency table with estimates:

PhaseNameDepends OnParallel WithEstimateStatus

Phase 9: DETAIL - Code Deltas Per Phase

What You're Doing

Specifying exact code changes for each phase.

Code Delta Format

For each file, specify:

  • File path and action: (CREATE) or (MODIFY)
  • Full file contents for new files
  • Diff format for modifications (show context lines with +/- changes)

See Plan Template for full code delta examples.


Phase 10: TEST - TDD Acceptance Criteria

What You're Doing

Defining failing tests for each phase BEFORE implementation.

Testing Pyramid

Follow the pyramid - more unit tests, fewer integration, even fewer E2E:

  • Unit Tests (80%): Business logic, utilities - fast, many
  • Integration Tests (15%): API contracts, database - medium
  • E2E Tests (5%): Critical user journeys only - slow, few

Test-First Workflow

For each phase:

  1. Write tests FIRST (they will fail)
  2. Run tests to confirm they fail
  3. Implement the code
  4. Run tests to confirm they pass
  5. All existing tests must still pass

Durable vs Brittle Tests

Write durable tests that test behavior/outcomes, not implementation details:

  • Test what the function DOES, not HOW it does it
  • Test public API, not internal state
  • Tests should survive refactoring without changes

See Testing Pyramid for comprehensive test examples and strategies.


Definition of Done (Quality Gate) - REQUIRED PER PHASE

Every phase MUST include this Definition of Done checklist:

### Definition of Done
- [ ] Code passes linter ([detected linter]: eslint/ruff/golint)
- [ ] Code passes formatter check ([detected formatter]: prettier/black/gofmt)
- [ ] Code passes type checker ([detected checker]: tsc/mypy/go vet)
- [ ] All new code has test coverage (target: 80%+)
- [ ] All new tests pass
- [ ] All existing tests still pass
- [ ] No new warnings introduced
- [ ] All tasks completed in this phase are checked off in the plan document

IF QUALITY TOOLS MISSING: Plan must include Phase 0: Quality Bootstrap before any implementation phases.


Phase Completion: Conventional Commit Message - REQUIRED PER PHASE

CRITICAL: At the end of EVERY phase, you MUST output a conventional commit message.

Rules

  1. OUTPUT ONLY - Print the commit message to the console. NEVER stage files. NEVER create commits. The user will handle all git operations.
  2. Conventional Format - Follow the Conventional Commits specification
  3. Comprehensive Context - Include all files changed, what was done, and relevant context
  4. BUBBLE UP FROM SUB-AGENTS - When phases run in sub-agents or background tasks, the conventional commit message MUST be returned to the main process. The main agent MUST output all commit messages to the user so they can make commits for each phase.

Commit Message Format

<type>(<scope>): <short summary>

<body - detailed description of changes>

Files changed:
- path/to/file1.ts (CREATE/MODIFY/DELETE)
- path/to/file2.ts (CREATE/MODIFY/DELETE)

<footer - breaking changes, issue references, etc.>

Types

TypeWhen to Use
featNew feature or capability
fixBug fix
refactorCode restructuring without behavior change
testAdding or updating tests
docsDocumentation changes
styleFormatting, linting (no code change)
choreBuild, config, dependencies
perfPerformance improvements

Example Output

At the end of a phase, output:

PHASE 1A COMPLETE - Conventional Commit Message:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

feat(auth): implement JWT token validation middleware

Add middleware to validate JWT tokens on protected routes.
Includes token parsing, signature verification, and expiry checks.
Extracts user claims and attaches to request context.

Files changed:
- src/middleware/auth.ts (CREATE)
- src/types/auth.ts (CREATE)
- src/routes/protected.ts (MODIFY)
- tests/middleware/auth.test.ts (CREATE)

Refs: #123
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

⚠️  DO NOT COMMIT - User will handle git operations

IMPORTANT: Always include the warning that the user will handle git operations. Never assume you will commit or stage files.

Sub-Agent and Background Task Handling

When phases execute in parallel using sub-agents or background tasks:

  1. Sub-Agent Responsibility: Each sub-agent MUST include its conventional commit message in its return output
  2. Main Agent Responsibility: The main agent MUST:

- Collect all commit messages from completed sub-agents/background tasks - Output each commit message to the user immediately upon sub-agent completion - Clearly label which phase each commit message belongs to

Example - Parallel Phase Completion:

PARALLEL PHASES COMPLETE (1A, 1B, 1C)

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
PHASE 1A - Commit Message:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
feat(auth): implement JWT token validation

Files changed:
- src/middleware/auth.ts (CREATE)
- tests/middleware/auth.test.ts (CREATE)

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
PHASE 1B - Commit Message:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
feat(api): add user profile endpoints

Files changed:
- src/routes/profile.ts (CREATE)
- src/types/user.ts (MODIFY)
- tests/routes/profile.test.ts (CREATE)

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
PHASE 1C - Commit Message:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
feat(ui): create settings page component

Files changed:
- src/components/Settings.tsx (CREATE)
- src/styles/settings.css (CREATE)

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

⚠️  DO NOT COMMIT - User will handle git operations for each phase

Phase 11: DOCUMENT - Write the Plan

What You're Doing

Writing the complete plan to docs/<feature>-plan.md.

Plan Execution

Once the plan is complete, ask the user:

Would you like me to execute this plan with /superbuild, or do you want to review/modify it first?

If the user wants to execute and has superbuild installed, invoke it directly with the plan path.

If superbuild is not installed, direct them to install it from: https://github.com/adamos486/skills

Multi-File Strategy

Large plans may exceed file size limits (~25,000 tokens). When this happens:

  1. Split by logical boundaries:

- File 1 (-plan-1.md): Executive Summary, Requirements, Research, Architecture - File 2 (-plan-2.md): Phase 0 and Phase 1 (parallelizable phases) - File 3+ (-plan-N.md): Remaining phases, Testing Strategy, Assumptions, Appendix

  1. Each file must be self-contained:

- Include header referencing the plan set - Include navigation links to other parts - Include Table of Contents for that file

  1. Size thresholds (~4 tokens per word):

- Under ~4,000 lines / ~20,000 tokens: Single file - Over ~4,000 lines / ~20,000 tokens: Split into multiple files

Multi-File Header

# [Feature Name] Implementation Plan - Part [N] of [Total]

> **Plan Set**: `docs/<feature>-plan-*.md`
> **This File**: Part [N] - [Section Names]
> **Navigation**: [Part 1](feature-plan-1.md) | [Part 2](feature-plan-2.md) | ...

Plan Structure

See Plan Template for the complete plan file structure including all sections, formats, and examples.

Chunked Writing

For large plans, write in chunks to prevent context loss:

  1. Write Overview + Requirements → Save
  2. Write Architecture → Save
  3. Write each Phase separately → Save after each
  4. Write Assumptions + Appendix → Save

Execution Flow

Quick Reference

  1. Intake → Ask for requirements, capture raw input, identify type
  2. Detect → Check CLAUDE.md/AGENTS.md first; if complete, BYPASS scan + RESEARCH
  3. Interview → Ask 3-5 clarifying questions, wait for answers
  4. Research → Web search best practices (BYPASSED if CLAUDE.md/AGENTS.md complete)
  5. Explore → Analyze codebase patterns and integration points (ALWAYS RUNS)
  6. Refactor Assess → Evaluate code smells, interview on roadmap, decide if refactoring needed
  7. Architect → Design solution with diagrams
  8. Phase → Break into parallelizable phases WITH POKER ESTIMATES
  9. Detail → Specify code deltas per phase WITH DEFINITION OF DONE
  10. Test → Define failing tests (TDD) per phase
  11. Document → Write to docs/<feature>-plan.md

PHASE COMPLETION (after each phase during execution):

  • Check off all completed tasks in the plan document
  • Output conventional commit message (NEVER commit, user handles git)

Status Updates

Use checkpoint summaries after each major phase to show progress. Examples:

DETECT COMPLETE (from CLAUDE.md)
- Source: CLAUDE.md ✅
- Language: TypeScript
- Framework: Next.js 14
- Quality Tools: eslint ✅, prettier ✅, tsc ✅, jest ✅
- Bootstrap Required: No
- RESEARCH PHASE: BYPASSED (tech stack from project documentation)
DETECT COMPLETE (from codebase scan)
- Source: Codebase scan (no CLAUDE.md/AGENTS.md found)
- Language: TypeScript
- Framework: Next.js 14
- Quality Tools: eslint ✅, prettier ✅, tsc ✅, jest ✅
- Bootstrap Required: No
- RESEARCH PHASE: Required
REFACTOR ASSESSMENT COMPLETE
- Confidence: HIGH
- Code smells found: Long methods (3), duplicate code (2), feature envy (1)
- AI slop detected: 4 files with high-confidence findings (via slop-or-not)
- Top refactor candidates (RRF-ranked):
  1. api/users.py (modification priority + CRITICAL slop)
  2. auth/login.py (modification priority + HIGH slop)
  3. utils/helpers.py (modification priority + MEDIUM slop)
- Future roadmap: 2 related features planned next quarter
- Recommendation: Refactor UserService before feature implementation
- User decision: APPROVED - Adding Phase 0A (refactor) to plan
PHASES DEFINED (with estimates)
- Total phases: 6 (including refactor phase)
- Total estimate: 31 points
- Refactor phase: 0A (5pts) - must complete first
- Parallelizable: 1A (8pts), 1B (5pts), 1C (3pts) - USE SUB-AGENTS
- Sequential: Phase 0A → Phase 1s → Phase 2 (5pts)
PHASE 1A COMPLETE
✅ Tasks checked off in plan document
✅ All Definition of Done criteria met

Conventional Commit Message:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
feat(api): add user authentication endpoints

Implement login, logout, and token refresh endpoints.
Add request validation and error handling.

Files changed:
- src/routes/auth.ts (CREATE)
- src/middleware/validate.ts (MODIFY)
- tests/routes/auth.test.ts (CREATE)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━

⚠️  DO NOT COMMIT - User will handle git operations

See Execution Guide for full execution instructions, prompts, and checkpoint templates.


References

For detailed guidance on specific topics:

  • Interview Guide - Comprehensive question templates by category and feature size
  • Refactoring Research - Refactoring methodologies (Mikado, Strangler Fig, Branch by Abstraction), code smells catalog, decision frameworks
  • Plan Template - Full plan file structure with all sections and examples
  • Testing Pyramid - TDD workflow, test examples, durable vs brittle tests
  • Execution Guide - Step-by-step execution flow and checkpoint templates

平台分布

Claude Code

30.59%
按下载量换算33

Codex

21.75%
按下载量换算23

OpenCode

18.74%
按下载量换算20

trae

12.91%
按下载量换算14

Antigravity

8.12%
按下载量换算9

windsurf

3.35%
按下载量换算4

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

未通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。

继续浏览同类 Skills