本文へ移動
cccskills
無料GitHub で公開

recursive-spec

Approval-gated, repo-aware requirements/spec authoring for new recursive-mode runs. Use when the user wants help creating a plan, spec, scope, or requirements for work that does not yet have a run, especially prompts like "create a plan", "help me plan", "create a spec", "write requirements", or similar derivatives.

日本語の概要は準備中です。原文の説明を表示しています。

try-works/role-modelスター 117(GitHub 117 + cccskills 0)

実行スコア 未検証

インストール方法を見る

含まれるファイル(3)

  • SKILL.md5.5 KB
  • agents/openai.yaml229 B
  • references/patterns.md3.8 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

recursive-spec

Use this skill to co-author a repo-aware 00-requirements.md for a new recursive-mode run.

This skill is for requirements/spec authoring before implementation starts. It does not replace /.recursive/RECURSIVE.md, and it should not skip ahead to Phase 2 planning or Phase 3 implementation.

Primary Use Case

Use recursive-spec when the user wants help shaping work before a run exists, especially with prompts like:

  • create a plan
  • help me plan
  • create a spec
  • write requirements
  • spec this out
  • scope this

The important signal is plan/spec language for a new run, not implementation of an existing run.

Conversation Contract

When the trigger is detected:

  1. First ask whether the user wants help creating a spec for a recursive run.
  2. If the user replies positively, ask: What do you want to do?
  3. Then gather context, read the repo, and co-author the requirements.

Do not jump straight into writing 00-requirements.md before the user confirms they want spec help.

Draft Handling Before Approval

Until the user explicitly approves the spec:

  • keep the draft outside the repository worktree
  • prefer a temporary session artifact or scratch file
  • do not create /.recursive/run/<run-id>/
  • do not write 00-requirements.md

If the user rejects the draft, revise it or discard the temporary draft artifact. Do not leave behind a half-approved run folder.

Required Read Behavior

Before drafting requirements, read:

  1. /.recursive/STATE.md
  2. /.recursive/DECISIONS.md
  3. /.recursive/memory/MEMORY.md
  4. relevant memory shards only when they actually matter
  5. the most relevant code and tests for the requested area

The skill should be repo-aware, not a blind questionnaire. Use the control-plane docs to understand current truth and the codebase to understand actual surfaces, coupled modules, existing tests, and likely boundaries.

Authoring Flow

Use a guided interview. Ask one focused question at a time when the answer is not already grounded by repo docs or code.

Recommended sequence:

  1. Goal and user outcome
  2. Task type: feature, bugfix, refactor, migration, investigation
  3. Affected subsystem or files
  4. In-scope requirements (R#)
  5. Observable acceptance criteria for each requirement
  6. Edge cases, failure paths, and exclusions
  7. Constraints, fixed decisions, and boundaries
  8. Open unknowns that must be resolved before Phase 0 is locked

Prefer proposing draft wording and asking the user to confirm or correct it rather than asking the user to author the whole document from scratch.

Quality Rules

Borrow the strongest authoring ideas from contract-first workflows, but keep the output native to recursive-mode:

  • start with user intent and desired outcome
  • separate fixed decisions from open questions
  • define deterministic, observable acceptance criteria
  • include exception and failure-path thinking instead of only the happy path
  • make boundaries concrete enough to guide later AS-IS analysis and planning
  • keep out-of-scope items explicit

Do not introduce a separate .spec DSL or a second workflow format.

Output Contract

The finished output should become:

  • /.recursive/run/<run-id>/00-requirements.md

Use the repository's native Phase 0 requirements structure:

  • keep the scaffolded header from recursive-init, including Workflow version: recursive-mode-audit-v2
  • keep the required ## TODO section and replace placeholder checklist items rather than deleting the heading
  • ## Requirements
  • ## Out of Scope
  • ## Constraints

Within ## Requirements, each R# should include:

  • a short title
  • a clear description
  • observable acceptance criteria bullets

Run Creation Rule

Do not create the run folder immediately.

  1. Draft and refine the requirements with the user first.
  2. Keep the draft in a temporary non-repo artifact until approval.
  3. Confirm the user approves the spec and that it is complete enough to proceed.
  4. Create the run with scripts/recursive-init.py or scripts/recursive-init.ps1.
  5. Replace the scaffolded 00-requirements.md with the approved requirements content.

This keeps the run artifact grounded in user-approved requirements instead of half-formed notes.

Routing Awareness

If spec authoring uses delegated critique, delegated review, or any other external model help to shape the draft, re-read:

  • /.recursive/config/recursive-router.json
  • /.recursive/config/recursive-router-discovered.json

immediately before choosing that CLI/model, and route through recursive-router instead of inventing an ad hoc model choice.

Boundaries

  • Stay focused on 00-requirements.md authoring for a new run.
  • Do not silently convert this into Phase 2 planning.
  • Do not start implementation just because the requirements became clear.
  • Do not skip code reading when repository structure matters to scope or constraints.
  • Do not create a run until the user-approved spec is ready to write.
  • Do not write repository requirements artifacts from an unapproved draft.

References

  • /.recursive/RECURSIVE.md
  • /.recursive/STATE.md
  • /.recursive/DECISIONS.md
  • /.recursive/memory/MEMORY.md
  • ../../references/artifact-template.md
  • ./references/patterns.md

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

Build AI agents on Cloudflare Workers using the Agents SDK. Load when creating stateful agents, durable workflows, real-time WebSocket apps, scheduled tasks, MCP servers, chat applications, voice agents, or browser automation. Covers Agent class, state management, callable RPC, Workflows, durable execution, queues, retries, observability, and React hooks. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.

日本語の概要は準備中です。原文の説明を表示しています。

try-works/role-model1172026年10月25日 更新

Comprehensive Cloudflare platform skill covering Workers, Pages, storage (KV, D1, R2), AI (Workers AI, Vectorize, Agents SDK), feature flags (Flagship), networking (Tunnel, Spectrum), security (WAF, DDoS), and infrastructure-as-code (Terraform, Pulumi). Use for any Cloudflare development task. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.

日本語の概要は準備中です。原文の説明を表示しています。

try-works/role-model1172026年10月25日 更新

Send and receive transactional emails with Cloudflare Email Service (Email Sending + Email Routing). Use when building email sending (Workers binding or REST API), email routing, Agents SDK email handling, or integrating email into any app — Workers, Node.js, Python, Go, etc. Also use for email deliverability, SPF/DKIM/DMARC, wrangler email setup, MCP email tools, or when a coding agent needs to send emails. Even for simple requests like "add email to my Worker" — this skill has critical config details.

日本語の概要は準備中です。原文の説明を表示しています。

try-works/role-model1172026年10月25日 更新

Guides Cloudflare One Zero Trust and SASE work across Access, Gateway, WARP, Tunnel, Cloudflare WAN, DLP, CASB, device posture, and identity. Use when designing, configuring, troubleshooting, or reviewing Cloudflare One deployments. Retrieval-first: use current Cloudflare docs/API schemas instead of embedded product docs.

日本語の概要は準備中です。原文の説明を表示しています。

try-works/role-model1172026年10月25日 更新

Plans migrations from Zscaler ZIA/ZPA, Palo Alto, legacy VPN, SWG, or SASE stacks to Cloudflare One. Use for migration assessments, policy mapping, rollout plans, and parity/gap analysis.

日本語の概要は準備中です。原文の説明を表示しています。

try-works/role-model1172026年10月25日 更新

Review the changed lines of a single file in a pull request for bugs, correctness, error handling, security, and maintainability, and return structured findings.

日本語の概要は準備中です。原文の説明を表示しています。

try-works/role-model1172026年10月25日 更新

try-works のスキルをすべて見る

このスキルの問題を報告する