一键导入
pastiche-write-wisdom
Use when adding or revising an atom-intrinsic rule in WISDOM.md — including when triaging a `wisdom-gap` follow-up from the pastiche skill.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when adding or revising an atom-intrinsic rule in WISDOM.md — including when triaging a `wisdom-gap` follow-up from the pastiche skill.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Divide a specced pastiche task into sub-task GitHub issues with autonomy and dependency labels, mirror them into `_dev/TODO.md`, and update the parent issue. Use after `grill-to-spec` completes for a task, or when the user invokes `/divide-task`.
Convert a completed grill-me session into a spec file. Captures only the task and the decisions locked during grilling — no implementation details, no invented decisions. Use when the user asks to write a spec from a grill, save grill decisions, or after a grill-me session concludes.
Pick up or resume a task from `_dev/TODO.md` — marks `[WIP]`, creates or switches to the task's feature branch, rebases with main. Use when the user invokes `/pick-up-task` or asks to grab/resume a pastiche task.
Rebase the current pastiche feature branch onto main to absorb hotfixes. Use when the user invokes `/rebase-feat-with-main`, when resuming a task, or after a hotfix lands on main while a feature branch is in flight.
Ship a pastiche release — version bump, plugin build, CHANGELOG entry, release commit, tag, GitHub Release, milestone close. Use when the user invokes `/release-pastiche` after a TODO group's final feat→main merge. Human-triggered only; never run from an automated routine.
Use when bootstrapping pastiche for first-time adoption (post-`/pastiche-init`) — fills `KNOWLEDGE.md` and seeds `[GENERAL]` `WISDOM.md` rules section by section. Resumable across sessions; re-invoke to continue.
基于 SOC 职业分类
| name | pastiche-write-wisdom |
| description | Use when adding or revising an atom-intrinsic rule in WISDOM.md — including when triaging a `wisdom-gap` follow-up from the pastiche skill. |
Inserts one atom-intrinsic rule into pastiche/WISDOM.md per invocation. See WISDOM.md's header for the bullet format. Tags are FACT entries verbatim; never derived utility forms. [GENERAL] is the lone non-FACT tag, reserved for system-wide rules.
Get the rule. If a proposed rule is already on the table from the surrounding conversation (e.g., a wisdom-gap follow-up), use it. Otherwise ask the user for the rule. Read pastiche/FACT.md in full.
Atom-intrinsic test. Can the rule be stated as a property of the atom that holds everywhere the atom appears? If it contains a scenario qualifier ("in payment flows", "for destructive actions", "when used as a primary CTA"), it is scenario-conditional and belongs in KNOWLEDGE. Stop and report:
This rule is scenario-conditional (qualifier:
<phrase>). It belongs in KNOWLEDGE as a scenario→atom mapping. Re-invoke/pastiche-write-knowledgewith this rule.
Counter-example that fails the test (this is KNOWLEDGE, not WISDOM):
Pick tags.
[GENERAL] upfront, skip to step 4.Tag
<X>is not in FACT.md. Either it's misspelled, FACT is stale (run/pastiche-sync), or the atom doesn't exist — in which case reconsider as KNOWLEDGE (scenario-conditional) or[GENERAL](system-wide).
[GENERAL] instead?" If yes, go to step 4.[GENERAL] gate (only when [GENERAL] is proposed). Apply both tests; halt on either failure:
/pastiche-write-knowledge) or atom-specific after all (→ step 3).Only proceed when both tests pass and the user explicitly confirms [GENERAL].
Show existing neighbors. For each chosen tag, grep -nE '\[([^]]*,)?<Tag>(,[^]]*)?\]' pastiche/WISDOM.md | grep -vE '^[0-9]+:[[:space:]]*<!--' (escape any regex meta-characters in <Tag>). Show the matching entries to the user so they can self-detect duplication or refinement opportunities before drafting.
Draft and confirm. Compose the bullet in canonical form: - [Atom1,Atom2] rule text. Show the exact line and ask: yes / edit text. Loop on edits until confirmed.
Insert. For each tag in the new entry, grep -nE '\[([^]]*,)?<Tag>(,[^]]*)?\]' pastiche/WISDOM.md | grep -vE '^[0-9]+:[[:space:]]*<!--' (escape regex meta-characters in <Tag> as in step 5). Insert the bullet immediately after the last matching line across all the entry's tags. If no tag has any existing match, append to end of file.
Lint. Shell: pastiche-lint (on PATH via plugin bin/ — do not search), cwd = repo root. Forward stdout; on non-zero exit, also forward stderr. Don't revert; don't abort. Then close with:
<line>. Lint passed. Re-invoke for additional rules."<line>. Lint output above — review and remediate. Re-invoke for additional rules."