agentleFS
arcobaleno64arcobaleno64/council-forge/.github/skills/bootstrap-prompt-builder/SKILL.md

bootstrap-prompt-builder

Skill0 starsChanged 6 months agoMITView on GitHub

5-stage interactive flow that produces a tailored BOOTSTRAP_PROMPT for council-forge artifact-first multi-agent workflow. Use this skill when a user wants to start a new project, onboard an external chat (ChatGPT / Claude Chat) to council-forge, or generate a bootstrap message scaled to project size and work type. Triggers: 'bootstrap', 'new project', '開新專案', '外部 chat 接入'.

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. About 0 are common, 8 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Ask the user these five questions in order.

    line 44
  2. Distinctive:

    Ask: "Which best describes the first task?"

    line 86
  3. Very specific:

    Use this matrix (mirrors docs/lightweight_mode_rules.md §3.5):

    line 96
  4. Distinctive:

    Ask three yes/no questions:

    line 113
  5. Very specific:

    If any answer is "no", note it — Phase 5 will instruct the user to delete the corresponding subsection from BOOTSTRAP_PROMPT.md §4.

    line 127
  6. Very specific:

    Optional (CLI users only): if the user already has council-forge cloned, they can run python artifacts/scripts/discover_templates.py …

    line 161
  7. Very specific:

    Use the "最小版" example in BOOTSTRAP_PROMPT.md (the second code block in ## 使用說明).

    line 175
  8. Very specific:

    Use the main 6-section block in BOOTSTRAP_PROMPT.md.

    line 182
  9. Distinctive:

    Use the main 6-section block.

    line 195
  10. Distinctive:

    After rendering, also remind the user of the three template categories from Phase 4 that their work type / scale combination requires.

    line 206
  11. Distinctive:

    After producing the rendered prompt, give the user one paragraph telling them:

    line 212
  12. Distinctive:

    Do not invent CLI steps the user did not ask for.

    line 218
  13. Distinctive:

    No required CLI: every Python / pip / npm command in this document is in an Optional context with a markdown table fallback that works for …

    line 226

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Bootstrap Prompt Builder

When this skill starts, display this banner before doing anything else:

Bootstrap Prompt Builder v1.0.0 — council-forge artifact-first workflow

Help the user produce a tailored BOOTSTRAP_PROMPT for council-forge artifact-first workflow without copying boilerplate they don't need. The user describes their project once; this skill walks five short stages and outputs a ready-to-paste prompt sized to their actual scope.

When to Use

  • User says: "bootstrap", "new project", "開新專案", "外部 chat 接入", "啟動 council-forge", "我要開新案子"
  • User shares a project goal but is unsure which template / agent / variant to start with
  • User pastes a short description and asks "what's the right BOOTSTRAP_PROMPT for this?"

This skill works in any chat surface that can read user messages and emit markdown. It does not require Python, file system access, or CLI execution. Anything that mentions a CLI command in this document is Optional — a fallback table is always provided for chat-only environments.

What This Skill Produces

A single markdown code block containing the user's BOOTSTRAP_PROMPT, sized as one of three variants:

VariantApprox. linesSuitable for
minimal8-15solo / POC / single-file feature; risk ≤ 2 + context cost = S
standard30-60feature with plan + research; cross 2-3 files
full80-130cross-module / migration / security; needs SRS / RTM / Tavily

The single source of truth for prompt content is the repository's BOOTSTRAP_PROMPT.md. This skill never copies its text verbatim — it points the user at the source file and instructs them which sections to keep, fill, or remove based on the five stages below.


Phase 1: Identify Project Scale

Ask the user these five questions in order. Skip questions whose answer is already in their initial message.

  1. Codebase size: How many source lines, roughly? (estimate: <500 / 500-5000 / 5000-50000 / >50000)
  2. Module count: How many top-level modules / packages / services?
  3. Team: solo / 2-5 / 6+ ?
  4. External dependencies: any API keys, third-party services, or upstream forks involved?
  5. Scope clarity: is the first task fully defined (tight AC) or exploratory (need research first)?

Compute risk score and context cost

Apply the council-forge routing rubric (from CLAUDE.md §Agent Routing Policy).

Risk Score (0-10) — sum the points, cap at 10:

SignalPoints if present
External API / network dependency+1
Security / secrets / credential handling+2
Schema or migration touched+2
Cross-module / cross-repo writes+2
Verification difficulty (no automated check)+1
Scope ambiguity (research needed first)+2

Context Cost:

  • S: ≤ 3 files in scope
  • M: 4-10 files or multi-stage docs
  • L: > 10 files, cross-module, or long artifacts

Map to scale variant

Risk + ContextScale variantDefault agents
risk ≤ 2 AND context = SminimalClaude direct
3 ≤ risk ≤ 5, context = MstandardClaude orchestrate, Codex implement
risk ≥ 6 OR context = LfullClaude orchestrate, Codex implement, Gemini research, Tavily allowed

Tell the user: "Based on your answers, your scale is <minimal | standard | full>."


Phase 2: Identify Work Type

Ask: "Which best describes the first task?"

  • Bug fix: reproduce-then-fix; uses Bug Report + Debug runbook (full only)
  • Feature: new functionality; uses Feature Request + PR description; SRS / ADR at standard+
  • Refactor: structure change without behavior change; ADR at standard+
  • Migration: schema / dependency / framework change; ADR + RTM at full
  • Experiment / spike: time-boxed exploration; minimal artifacts only

Map to required templates

Use this matrix (mirrors docs/lightweight_mode_rules.md §3.5):

Work typeminimalstandard addsfull adds
Bug fixtask + code + verify + Bug report+ Debug runbook+ RTM if ≥3 modules touched
Featuretask + plan + code + verify + Feature request + PR description+ SRS (User Story) + ADR if architectural+ SRS (full IEEE 29148) + RTM
PR (external contribution)task + code + verify + PR description+ decision (if architectural)+ ADR
Refactortask + plan + code + verify+ ADR if architectural+ RTM (recompute coverage)
Migrationtask + plan + code + verify + ADR+ RTM+ SRS (full) + RTM (full coverage)
Experimenttask + code (lightweight gate)n/an/a

Record which templates the user needs.


Phase 3: Identify Agent Configuration

Ask three yes/no questions:

  1. "Will you use Codex CLI for implementation?" (yes for risk ≥ 3 or context cost ≥ M)
  2. "Will you use Gemini CLI for research / spec comparison?" (yes if external standards / multi-source research needed)
  3. "Will you allow Tavily-assisted research through Gemini?" (yes only if Tavily CLI available locally; council-forge requires explicit dispatch authorization)

The user's answers determine which subsections of BOOTSTRAP_PROMPT.md §4 (Agent 配置) survive the rendering step.

VariantCodexGeminiTavily
minimaloptional (Claude direct OK)usually nono
standardyesoptionaloptional
fullyesyesyes if available

If any answer is "no", note it — Phase 5 will instruct the user to delete the corresponding subsection from BOOTSTRAP_PROMPT.md §4.


Phase 4: Identify Output Templates

Show the user the 13 available templates in council-forge. Mark which ones their work type + scale needs (from Phase 2 matrix).

council-forge template catalog (mirrors docs/templates/<role>/TEMPLATE.md plus three GitHub UI surfaces):

TemplatePathScalePurpose
Implementerdocs/templates/implementer/TEMPLATE.mdallCodex coding subagent prompt
Testerdocs/templates/tester/TEMPLATE.mdallTest-writing subagent prompt
Verifierdocs/templates/verifier/TEMPLATE.mdallVerification subagent prompt
Reviewerdocs/templates/reviewer/TEMPLATE.mdallCode review subagent prompt
Paralleldocs/templates/parallel/TEMPLATE.mdallParallel subagent orchestration
Blockingdocs/templates/blocking/TEMPLATE.mdallBlocked-task declaration
Memory Curatordocs/templates/memory-curator/TEMPLATE.mdallGemini memory-bank draft
Architecture Synthesizerdocs/templates/architecture-synthesizer/TEMPLATE.mdallGemini SECI architecture guidance
RACI Auditordocs/templates/raci-auditor/TEMPLATE.mdallGemini RACI audit
SRSdocs/templates/srs/TEMPLATE.mdfullSoftware Requirements Specification
RTMdocs/templates/rtm/TEMPLATE.mdfullRequirements Traceability Matrix
Debug runbookdocs/templates/debug/TEMPLATE.mdbothIn-incident debug log
ADRdocs/templates/adr/TEMPLATE.mdstandard+Architecture Decision Record

Plus three GitHub UI surfaces (used at PR / Issue creation time):

SurfacePath
PR description.github/PULL_REQUEST_TEMPLATE.md
Bug report.github/ISSUE_TEMPLATE/bug_report.yml
Feature request.github/ISSUE_TEMPLATE/feature_request.yml

Optional (CLI users only): if the user already has council-forge cloned, they can run python artifacts/scripts/discover_templates.py --scale <lightweight|standard|full|all> to filter the list dynamically. External Chat users use the table above.


Phase 5: Render the Prompt

Output the prompt as a single markdown code block. Tell the user:

"Open the file BOOTSTRAP_PROMPT.md in your council-forge repository (or the published copy at https://github.com/arcobaleno64/council-forge/blob/master/BOOTSTRAP_PROMPT.md). It is the canonical 6-section template. Apply the edits below based on your <scale variant> result and paste the final block as the first message in your new chat."

Provide an outline of which sections to keep / fill / remove for each variant. Do NOT copy section text from BOOTSTRAP_PROMPT.md — only describe the edits.

Variant: minimal

Use the "最小版" example in BOOTSTRAP_PROMPT.md (the second code block in ## 使用說明). Replace the four placeholders:

  • 【名稱】, 【路徑】, 【語言/框架】, 【描述】

Tell the user this variant skips: research artifact, premortem (lightweight gate), Tavily, Memory Bank Curator, multi-round review.

Variant: standard

Use the main 6-section block in BOOTSTRAP_PROMPT.md. Edit:

SectionAction
§1 專案資訊Fill all 5 placeholders
§2 上游 Fork 模式Delete entirely (assumes no fork; if fork exists, fill the 3 placeholders instead)
§3 範本來源Fill the path to your council-forge clone or template source
§4 Agent 配置Keep Claude + Codex subsections. Delete Gemini and Tavily subsections if Phase 3 said "no" to those
§5 工作規範Keep as-is
§6 第一個任務Fill TASK-001 placeholders (objective, background, acceptance)

Variant: full

Use the main 6-section block. Edit:

SectionAction
§1 專案資訊Fill all 5 placeholders
§2 上游 Fork 模式Fill if fork project; delete otherwise
§3 範本來源Fill the path
§4 Agent 配置Keep all subsections (Claude, Codex, Gemini, Tavily)
§5 工作規範Keep as-is
§6 第一個任務Fill placeholders. Add a one-line note: "This task may need SRS / RTM / ADR per docs/lightweight_mode_rules.md §3.5"

After rendering, also remind the user of the three template categories from Phase 4 that their work type / scale combination requires.


Closing Step

After producing the rendered prompt, give the user one paragraph telling them:

  1. Paste the block as the first message in their new Claude Code session
  2. Verify the workflow gate by running python artifacts/scripts/guard_status_validator.py --task-id TASK-001 --auto-classify (Optional — only if the user has the repo cloned; otherwise Claude Code itself will run this in the new session)
  3. Templates referenced are in docs/templates/<role>/TEMPLATE.md — Claude Code will fetch them on demand; the user does not need to copy template text into the BOOTSTRAP message

Do not invent CLI steps the user did not ask for. The skill ends when the rendered block is delivered.


Rules This Skill Must Follow

  • Single source of truth: BOOTSTRAP_PROMPT.md is canonical. This skill points at it; never quotes it.
  • No verbatim copying: any line of BOOTSTRAP_PROMPT.md reproduced inside this SKILL.md beyond a one-line section title is a violation. Stage 5 outputs edits-to-apply, not the prompt text.
  • No required CLI: every Python / pip / npm command in this document is in an Optional context with a markdown table fallback that works for external chat users.
  • No new frontmatter keys: keys in the YAML header above are limited to those used by existing council-forge skills (name, description, license, metadata.*). Do not invent new keys (e.g., the applicable_scale key used by docs/templates/<role>/TEMPLATE.md belongs to a different layer and is not used here).
  • Scale name alignment: minimal / standard / full in this skill correspond to lightweight / standard / full in docs/lightweight_mode_rules.md §3.5. The skill's "minimal" maps to the rules file's "lightweight"; treat them as synonyms across the two documents.

When NOT to Use

  • User already has a populated council-forge repo and a clear next task — they don't need bootstrap; they need to start the next task directly.
  • User wants the workflow rules edited (use CLAUDE.md / AGENTS.md directly).
  • User wants a specific artifact template (use docs/templates/<role>/TEMPLATE.md directly).
  • User has a finished BOOTSTRAP message and wants debugging help — that's a separate task, not this skill.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.