用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/fabioc-aloha/alex-cognitive-architecture --skill prompt-builder命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Run the 7-step Artificial Critical Thinking pass — Materiality → Hypothesise → Alternatives → Disconfirmers → Audit priors → Severity → Commit-with-marker
Challenge what you think is right — alternative hypotheses, missing data, evidence quality, bias detection, falsifiability, and adversarial review
Step-back protocol — restate, generalise, specialise, invert, ask why, pre-mortem, check stakeholders, and audit framings before solving
基于 SOC 职业分类
正在显示 SKILL.md
| name | prompt-builder |
| description | Create and validate .prompt.md files that pass brain-qa on first attempt |
| tier | standard |
| applyTo | **/*.prompt.md,**/*prompt* |
| currency | 2026-04-22T00:00:00.000Z |
Build
.prompt.mdfiles that pass brain-qa on first attempt — no regressions
.prompt.md fileEvery .prompt.md has two parts: YAML frontmatter and Markdown body.
| Field | Required | Gate | Purpose |
|---|---|---|---|
description | Yes | Yes | What the prompt does (1 sentence) |
application | Yes | Yes | When/why to use it (distinct from description) |
mode | Conditional | No | Set to agent for loop prompts |
agent | Conditional | No | Named agent for root prompts |
tools | Conditional | No | Tool array for loop prompts |
Gate fields (description + application) are mandatory — brain-qa fails without both.
| Flag | Points | Rule |
|---|---|---|
desc | 1 | description: exists in frontmatter |
app | 1 | application: exists in frontmatter |
agent | 1 | agent: OR mode: agent exists |
>20L | 1 | Body exceeds 20 lines |
Pass = both gates (desc + app) AND score >= 3.
.github/prompts/*.prompt.md)Invoked directly by name. Typically route to a named agent.
---
description: "What this prompt does"
application: "When to use this prompt"
agent: Alex
---
Key rules:
agent: to name the target agent (Alex, Researcher, Validator, etc.)mode: or tools: — those are for loop prompts.github/prompts/loop/*.prompt.md)Sidebar buttons in the extension Loop tab. Loaded by loopMenu.ts.
---
mode: agent
description: "What this prompt does"
application: "When to use this prompt"
tools: ["read_file", "create_file", "run_in_terminal"]
---
Key rules:
mode: agenttools: array with relevant tool namesagent: — loop prompts use mode-based routingdescription vs applicationThese are distinct fields — do not duplicate content between them.
| Field | Answers | Example |
|---|---|---|
description | "What does this do?" | "3-pass code review with confidence scoring" |
application | "When should I use this?" | "Review code for correctness, security, and maintainability" |
Anti-pattern: Making application a rephrasing of description.
tools Array (Loop Prompts Only)Include only tools the prompt actually needs:
| Tool | When to Include |
|---|---|
read_file | Reads existing code or docs |
create_file | Generates new files |
replace_string_in_file | Edits existing files |
run_in_terminal | Runs commands (build, test, deploy) |
grep_search | Searches codebase for patterns |
semantic_search | Semantic code search |
list_dir | Explores directory structure |
fetch_webpage | Web research |
view_image | Image analysis |
get_errors | Reads diagnostics |
codebase | VS Code codebase tool |
terminal | VS Code terminal tool |
editFiles | VS Code edit tool |
# {Title}
{1-2 sentence intro describing the workflow}
## Phase 1: {Discovery/Setup}
{Steps for initial context gathering}
## Phase 2: {Execution}
{Core workflow steps}
## Phase 3: {Validation}
{How to verify the work}
## Output
{What the user should expect}
$ARGUMENTS — User's input text (root prompts)${{input}} — VS Code variable for selected text.github/skills/{name}/SKILL.md"Run mentally before saving any .prompt.md:
description: present and meaningfulapplication: present and distinct from descriptionagent: OR loop prompt has mode: agent + tools:.github/prompts/).github/config/loop-menu.json| Failure | Cause | Fix |
|---|---|---|
app=0 | Missing application: | Add field after description: |
desc=0 | Missing description: | Add field in frontmatter |
agent=0 | No agent: or mode: agent | Add appropriate field |
>20L=0 | Body too short | Expand with phases/instructions |
| Score 3 but FAIL | Has score but missing a gate | Ensure both description AND application exist |