Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问许可证需确认审计未展示

spec%3anew规格%3anew

Agent Skill

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

总安装

264

周安装

11

GitHub Stars

公开资料未说明

下载量

88
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/cloudvoyant/codevoyant --skill spec:new

简介

spec%3anew 用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据来源线索快速定位候选结果。
  • 通过 npx skills add 命令从指定仓库安装并使用。
  • 使用前需确认权限范围、维护状态及是否触发联网或文件操作。
  • spec%3anew 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Compatibility: If AskUserQuestion is unavailable, present options as a numbered list and wait for the user's reply. If Task is unavailable, run parallel steps sequentially.

Critical Rules

  • Never write code, modify files, or run build/test commands — this skill plans only; execution is for spec:go
  • Never create source files — only plan files (plan.md, phase-N.md, user-guide.md) and research artifacts
  • Never run the task runner commands you discover — record them for the execution agent, do not invoke them
  • Never apply "quick fixes" while planning — if you spot a bug or improvement opportunity, note it in the plan as a task, do not touch it
  • Stop at the plan — when the user says "looks good", your job is done; do not start implementing

Create a structured multi-phase implementation plan. The goal is a tight, well-scoped plan that an autonomous execution agent can follow without further guidance.

Step 0: Parse Arguments

Parse from: $ARGS (the full argument string passed to this skill).

Argument Parsing:

  • Plan name (first non-flag argument): /spec:new my-plan-name (no spaces in plan name)
  • Optional --branch flag: /spec:new my-plan-name --branch feature-branch

- Flag can be anywhere in the argument string - Branch name: alphanumeric, hyphens, underscores, slashes only - Invalid branch name → show error and stop

  • Plan names use hyphens, not spaces. Quoted names with spaces are invalid.
  • If plan name not provided, derive from objective later in Step 5.1

Store parsed values: PLAN_NAME, BRANCH_NAME, BLANK_MODE=false, BG_MODE=false, SILENT=false.

If --blank flag present: Set BLANK_MODE=true. After worktree setup (Step 2.5), skip directly to Step 5.1 — do not ask planning questions. Create the empty template and register it. Do not run validation. Report completion.

If --bg flag present: Set BG_MODE=true. After the plan is fully created and validated (after Step 6 "Looks good"), automatically launch background execution via spec:go --bg on the new plan. Pass --silent if SILENT=true.

Detect external source links:

Check if any argument contains a URL from a supported source:

  • Linear issue: linear.app/*/issue/* or app.linear.app/*/issue/*
  • Notion page: notion.so/* or notion.com/*
  • GitHub issue: github.com/*/issues/*
  • GitLab issue: gitlab.com/*/issues/* or gitlab.*/-/issues/*

Store as SOURCE_URL, SOURCE_TYPE (linear | notion | github | gitlab | none), SOURCE_ID.

Step 0.5: Detect Branch Context

Run git rev-parse --git-dir to confirm this is a git repo. If not, disable branch features (CURRENT_BRANCH="", TARGET_BRANCH="", BASE_BRANCH="").

If in a git repo:

  • CURRENT_BRANCH = git rev-parse --abbrev-ref HEAD
  • If --branch flag given: TARGET_BRANCH=$BRANCH_NAME, SHOULD_CREATE_WORKTREE=true, BASE_BRANCH=$CURRENT_BRANCH
  • Otherwise: TARGET_BRANCH=$CURRENT_BRANCH, SHOULD_CREATE_WORKTREE=false, BASE_BRANCH=$CURRENT_BRANCH

Step 0.8: Fetch External Source (if URL provided)

If SOURCE_TYPE is none, skip this step.

Linear (SOURCE_TYPE=linear): Use mcp__linear-server__get_issue with the extracted issue identifier. Extract title → candidate PLAN_NAME if not set; description, comments, labels, priority.

Notion (SOURCE_TYPE=notion): Use mcp__claude_ai_Notion__notion-fetch with the URL. Extract page title → candidate PLAN_NAME; content as requirements context.

GitHub issue (SOURCE_TYPE=github): Run gh issue view {number} --repo {owner}/{repo} --json title,body,labels,comments.

GitLab issue (SOURCE_TYPE=gitlab): Run glab issue view {number} --repo {project-path} --output json.

Store result as EXTERNAL_CONTEXT. Report: ✓ Fetched context from {SOURCE_TYPE}: "{title}". If fetch fails, warn and continue.

Step 1: Check for Existing Plan

If a specific plan name was provided, check if .codevoyant/plans/{plan-name}/plan.md already exists. If no plan name provided, check for active plans:

npx @codevoyant/agent-kit plans list --status Active

When a matching plan is found:

  • If plan is complete (all phases have ✅): use AskUserQuestion — "Replace with new plan" or "Cancel"
  • If plan is incomplete: use AskUserQuestion — "Replace plan", "Continue existing (run /spec:go)", or "Cancel"

WAIT FOR USER decision before proceeding.

Step 2: Initialize.codevoyant Structure

npx @codevoyant/agent-kit init

Step 2.5: Create Worktree (if requested)

If --branch flag was given:

npx @codevoyant/agent-kit worktrees create \
  --branch "$TARGET_BRANCH" \
  --base "$BASE_BRANCH" \
  --plan "$PLAN_NAME"

Store the reported worktree path as PLAN_WORKTREE (or "" if SHOULD_CREATE_WORKTREE=false). Error and exit if worktree already exists or git commands fail.

Step 3: Understand Scope

3a. Check for existing research

Check .codevoyant/explore/ for recent explore artifacts (files written by dev:explore or skill:explore).

If recent artifacts exist, use AskUserQuestion:

question: "I found recent exploration in .codevoyant/explore/. Should I base this spec on that research?"
header: "Research Context"
options:
  - label: "Yes — use the research"
    description: "Load explore artifacts as context for this plan"
  - label: "No — start from description"
    description: "Ignore existing research, I'll describe what I want"

If "Yes": read all files in .codevoyant/explore/ and store as RESEARCH_CONTEXT. If "No" or no artifacts found: RESEARCH_CONTEXT="".

3b. Get the objective

If EXTERNAL_CONTEXT is set, present it to the user and confirm it captures the intent. Ask only if something is unclear.

Otherwise ask: "What are you planning to build, implement, or accomplish?"

Wait for the user's response. Store as OBJECTIVE.

Step 3.5: Detect Task Runners

Scan the project root for task runners. Run scripts/detect-task-runners.sh and store output as TASK_RUNNER_SUMMARY. Identifies commands for: build, test, lint, format, typecheck, run/dev.

Step 4: Clarify and Narrow Scope

4a. Ask clarifying questions

Based on OBJECTIVE and RESEARCH_CONTEXT, ask targeted questions to narrow the scope enough for autonomous execution. Ask all unknowns in a single AskUserQuestion call. Focus on:

  • Key components affected
  • Constraints or non-goals
  • Preferred implementation style (lightweight prototype vs production-grade)
  • Dependencies and ordering

Skip questions that RESEARCH_CONTEXT or EXTERNAL_CONTEXT already answers.

4b. Scope check

After receiving answers, assess whether the scope is narrow enough for direct planning. A scope is too broad if:

  • It spans more than ~3 unrelated subsystems without a clear integration seam
  • The approach is genuinely undecided between architecturally different options
  • Key unknowns remain that would force the execution agent to make high-stakes design choices

If scope is clear: proceed directly to Step 5.

If scope is too broad: launch an Opus researcher to propose options:

Agent (model: claude-opus-4-6, run_in_background: false):

You are a technical advisor helping scope a software implementation plan.

Objective: {OBJECTIVE}
Clarifications: {user answers from 4a}
Research context: {RESEARCH_CONTEXT if set}

The scope is too broad for direct planning. Propose 2–3 high-level implementation approaches.

For each approach:
- Name (slug-style, e.g. "event-driven-pipeline")
- One-sentence summary
- Key trade-off vs the alternatives (one sentence)
- Rough phase count

Keep each proposal to 4–5 lines. Be concrete — reference actual files or patterns from the codebase if research context is available.

Present the proposals to the user.

If BG_MODE=false: use AskUserQuestion for the user to select one approach.

If BG_MODE=true: instruct the Opus agent to also select the strongest approach and briefly justify it. Use that selection and continue.

Store selected approach as SELECTED_APPROACH. Update OBJECTIVE to incorporate it.

Step 5: Create Structured Plan

5.1: Determine Plan Name

  • Use provided plan name, or derive from OBJECTIVE:

- Lowercase, hyphens for spaces, alphanumeric + hyphens only, max 50 chars

  • Resolve collisions: run scripts/resolve-plan-name.sh <base-name> <CHECK_DIR> — returns a unique name or exits 1 if all taken. Inform user if name was modified.

5.2: Create Plan Directory Structure

CHECK_DIR = $PLAN_WORKTREE/.codevoyant/plans if worktree set, else .codevoyant/plans.

PLAN_DIR = $CHECK_DIR/{plan-name}.

Create: $PLAN_DIR/, $PLAN_DIR/implementation/, $PLAN_DIR/research/.

If RESEARCH_CONTEXT is set, copy or link the explore artifacts into $PLAN_DIR/research/ for the execution agent.

Report: ✓ Plan directory created at: $PLAN_DIR

5.3: Create Plan Files

a. plan.md at $PLAN_DIR/plan.md

Prepare metadata: CREATED_TIMESTAMP=$(date -u +"%Y-%m-%dT%H:%M:%SZ"), METADATA_BRANCH=$TARGET_BRANCH (or "(none)"), METADATA_BASE_BRANCH=$BASE_BRANCH (or "main"), METADATA_WORKTREE=$PLAN_WORKTREE (or "(none)"), METADATA_TASK_RUNNERS=$TASK_RUNNER_SUMMARY.

Use the template in references/plan-template.md. Include task runner metadata. If SOURCE_URL set, add - **Source**: {SOURCE_URL} in the Metadata section.

Phase 0 — Human Prerequisites (include only if needed)

Before writing Phase 1, scan the objective and clarifications for anything that requires a human action that cannot be automated. Examples:

  • Sign up for a third-party account or service
  • Create or obtain an API key, token, or credential
  • Provision infrastructure (e.g. create a database, spin up a cloud resource)
  • Purchase or activate a paid plan
  • Manually approve or accept terms of service
  • Obtain a secret from a colleague or password manager

If any such prerequisites exist, create ### Phase 0 - Prerequisites as the first phase. List each item as a task. The execution agent will stop at Phase 0 and prompt the user to complete these before any code is written. If no human prerequisites exist, omit Phase 0 entirely — do not create it as an empty placeholder.

Format:

  • ### Phase N - Description for phase headers
  • 1. [] for unchecked tasks (all start unchecked)
  • 1. [x] for checked tasks
  • ✅ added to phase header only when all tasks complete
  • Keep task descriptions concise (one line each)
  • NO detailed implementation specs in plan.md

b. user-guide.md at $PLAN_DIR/user-guide.md

Required — do not skip. Documents how to use what will be built, not how it's implemented. Use references/user-guide-template.md. Fill in what is knowable now; mark unknowable sections <!-- TODO: fill in during/after execution -->.

Verify: test -s "$PLAN_DIR/user-guide.md" && echo "✓ user-guide.md" || echo "✗ MISSING — write it now"

c. Implementation files — one per phase at $PLAN_DIR/implementation/phase-N.md

Use references/implementation-template.md. Move ALL detailed specs here:

  • Dependencies to add/remove
  • Files to create/modify/delete
  • Code for non-trivial logic
  • Testing and validation steps

Task runner constraint (CRITICAL): Every build, test, lint, and run command MUST use METADATA_TASK_RUNNERS. Never invent custom shell commands when a task runner recipe exists. Note gaps where a category has no dedicated recipe.

5.4: Register Plan

npx @codevoyant/agent-kit plans register \
  --name "$PLAN_NAME" \
  --plugin spec \
  --description "$PLAN_DESCRIPTION" \
  --branch "${METADATA_BRANCH}" \
  --total "$TASK_COUNT"

(Set --branch only if METADATA_BRANCH is not "(none)" or empty. Calculate TASK_COUNT by counting [] items in plan.md.)

5.5: Verify All Implementation Files

Phase 0 (Prerequisites) is a manual gate — it has no implementation file. Only phases 1 through N need implementation files.

echo "=== Plan file check ==="
test -s "$PLAN_DIR/plan.md"       && echo "✓ plan.md"       || echo "✗ MISSING: plan.md"
test -s "$PLAN_DIR/user-guide.md" && echo "✓ user-guide.md" || echo "✗ MISSING: user-guide.md — write it now"
# Start from phase 1 — phase-0.md is never created
for i in $(seq 1 $PHASE_COUNT); do
  f="$PLAN_DIR/implementation/phase-$i.md"
  test -s "$f" && echo "✓ phase-$i.md" || echo "✗ MISSING: phase-$i.md"
done

If any file is missing or empty: write it immediately before proceeding. Missing user-guide.md is a blocking failure. Never create phase-0.md.

Step 5.6: Iterative Plan Validation and Auto-Fix (parallel with permissions analysis)

Immediately after all files are verified, launch two agents concurrently:

Agent P — Permissions analysis (subagent_type: general-purpose, model: claude-haiku-4-5-20251001, run_in_background: true):

Analyze the spec plan at {PLAN_DIR} and identify every permission an autonomous execution agent will need.

Read:

- {PLAN_DIR}/plan.md
- {PLAN_DIR}/implementation/phase-\*.md

For each phase, identify:

1. Bash commands used (git ops, task runners, CLIs like gh/glab)
2. External network access (WebFetch, WebSearch)

Map each to the Claude Code allow entry format:

- Shell commands → Bash({command}:_) e.g. Bash(git commit:_), Bash(just test:\*)
- Network → WebFetch, WebSearch

Return a JSON object:
{
"allow": ["Bash(git commit:*)", "Bash(just test:*)", ...],
"rationale": {"Bash(git commit:\*)": "Phase 2 commits after each task", ...}
}

Be specific — narrowest command prefix that covers actual usage.
Do NOT include standard baseline: Write, Edit, Read, Glob, Grep, Bash(mkdir:_), Bash(ls:_),
Bash(cat:_), Bash(find:_), Bash(echo:_), Bash(date:_), Bash(jq:_), Bash(bash:_), Bash(cp:_), Bash(mv:_).

Store the Task ID as PERMS_TASK_ID.

Validation loop — run the loop mechanics in references/validation-loop.md (minimum 2 rounds, cap at 3, auto-fix every NEEDS_IMPROVEMENT result before next round). Execute all rounds autonomously — do NOT pause for the user.

After the validation loop finishes, collect permissions result:

TaskOutput(id: PERMS_TASK_ID, block: true)

Parse the JSON and store as SUGGESTED_ALLOW and PERMS_RATIONALE.

Step 6: Review

If SUGGESTED_ALLOW is non-empty, present permission suggestions before the plan review question:

🔐 Permissions needed for autonomous execution:

  • {entry}  ← {rationale}
  ...

These can be added to .claude/settings.json now, or later with /dev:allow.

Use AskUserQuestion:

question: "Pre-approve these {N} permissions for this plan?"
header: "Execution Permissions"
options:
  - label: "Yes — add to .claude/settings.json"
  - label: "No — I'll handle permissions separately"

If "Yes": read .claude/settings.json (start from {} if absent), union permissions.allow array with SUGGESTED_ALLOW (deduplicate, sort), write back. Report: ✓ Added {N} allow entries to.claude/settings.json.

Then use AskUserQuestion for plan review:

question: "Does this plan cover everything? Any changes needed?"
header: "Plan Review"
options:
  - label: "Looks good — done"
  - label: "Minor adjustments needed"
  • Looks good: if BG_MODE=true, launch spec:go --bg {plan-name} (pass --silent if SILENT=true) and report launch. If BG_MODE=false, report completion with next steps (/spec:go or /spec:go --bg).
  • Minor adjustments: accept free-text, apply changes to plan.md and/or implementation files, re-run Step 5.6 if structural changes were made, then return to this Step 6 prompt.

Best Practices and Execution Constraints

See references/execution-guidelines.md for task writing best practices and constraints that execution agents must follow.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

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

平台分布

Codex

35.1%
按下载量换算31

Claude

31.04%
按下载量换算27

Cursor

20.15%
按下载量换算18

Gemini CLI

9.07%
按下载量换算8

安全审计

暂无安全审计结果可展示。

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

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

来源信息

继续浏览同类 Skills