promote-pattern
Skill1 starsChanged 15 days agoMITView on GitHub
patterns.json の昇格候補を rules/promoted/ または skills/promoted-YYYYMMDD-{id}/ に昇格させる。信用度が高いパターンをルール・スキルとして永続化する。
1 other project uses a version of this.
Adopted by
Most recently taken up by
- alkanfel1987/pantheon-seedtheir own version, first seen Oct 20, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- alkanfel1987/pantheon-seed★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository15 other files it gives its agents.
- .claude/CLAUDE.mdCLAUDE.md
- autonomous-modeSkill
- brainstormSkill
- developSkill
- dev-workflowSkill
- docSkill
- extract-libSkill
- init-sessionSkill
- parallel-agentsSkill
- pattern-statusSkill
- recallSkill
- report-timestampSkill
- review-phaseSkill
- setupSkill
- startSkill
The file
Files
promote-pattern
patterns.json の昇格候補を rules/promoted/ または skills/promoted-YYYYMMDD-{id}/ に昇格させる。
Step 1: 昇格候補を読み込む
.claude/memory/patterns.json を Read する。
promotion_candidate: true かつ promoted: true でないパターンを抽出する。
候補がない場合は以下を表示して終了する:
現在、昇格候補はありません。 (信用度 0.8 以上・登録から3日以上・未昇格が対象です)
Step 2: 昇格するパターンを選ぶ
AskUserQuestion ツールで候補を複数選択式で提示する:
{
"questions": [{
"question": "昇格するパターンを選んでください(複数選択可)",
"options": [
{ "label": "[trust: {スコア}] {id}", "description": "{description}" },
...候補の数だけ追加...,
{ "label": "今回は昇格しない", "description": "すべてスキップして終了する" }
],
"multiSelect": true
}]
}「今回は昇格しない」のみ選択された場合、または何も選択されなかった場合 → 終了する。
Step 3: 各パターンの昇格先を選ぶ
選択されたパターンごとに AskUserQuestion ツールで昇格先を確認する:
{
"questions": [{
"question": "「{description}」をどちらに昇格しますか?",
"options": [
{ "label": "rule", "description": "rules/promoted/ — 背景知識・制約として登録(「こうしろ / これを知っておけ」系)" },
{ "label": "skill", "description": "skills/promoted-YYYYMMDD-{id}/ — オーケストレーション手順として登録(「この順番で動かせ」系)。Claude が自動的に使用する" }
]
}]
}複数パターンを選んだ場合は1つずつ順番に確認する。
Step 4: ファイルを生成して保存する
パターンの description をもとに内容を生成し Write ツールで保存する。
rule の保存先: .claude/rules/promoted/YYYYMMDD-{id}.md
---
promoted_from: {pattern id}
promoted_date: YYYY-MM-DD
trust_score: {スコア}
---
# {タイトル}
{ルール本文。「何をすべきか / 何を知っておくべきか」を簡潔に記述する}skill の保存先: .claude/skills/promoted-YYYYMMDD-{id}/SKILL.md
---
name: promoted-YYYYMMDD-{id}
description: {昇格理由と期待効果を1文で。例: "security-audit における code-reviewer / security-reviewer の並列起動パターン。2 体のレビュアーを 1 メッセージで同時に当てる"}
promoted_from: {pattern id}
promoted_date: YYYY-MM-DD
trust_score: {スコア}
---
# {タイトル}
## 使うタイミング
{どんな状況でこのスキルを使うか — description の詳細版}
## 手順
{エージェント間のオーケストレーション手順をステップで記述する}Step 5: .claude/rules/promoted/index.md に追記する
rule の場合のみ — .claude/rules/promoted/index.md の <!-- C3:PROMOTED_RULES:BEGIN --> と <!-- C3:PROMOTED_RULES:END --> の間に追記:
- **{タイトル}** (`.claude/rules/promoted/YYYYMMDD-{id}.md`) — {description を1行で}skill の場合 — index.md への追記は不要。Claude Code がスキルを自動検出する。
Step 6: patterns.json を更新する
注意: patterns.json への直接編集は .claude/hooks/patterns_guard.py hook でブロックされます。以下の順序で実行してください:
- まず
.claude/state/patterns_guard_allow.flagを作成します(空ファイルで可):- Bash:
touch .claude/state/patterns_guard_allow.flag - PowerShell:
New-Item -ItemType File -Force .claude/state/patterns_guard_allow.flag
- Bash:
- その直後に patterns.json を Edit ツールで更新します(TTL 600 秒以内)
昇格したパターンの entry に以下を追加する:
rule の場合:
"promoted": true,
"promoted_date": "YYYYMMDD",
"promoted_to": ".claude/rules/promoted/YYYYMMDD-{id}.md"skill の場合:
"promoted": true,
"promoted_date": "YYYYMMDD",
"promoted_to": ".claude/skills/promoted-YYYYMMDD-{id}/SKILL.md"複数昇格した場合は Step 4〜6 を全パターン分まとめて処理してから Step 7 へ進む。
Step 7: 完了を報告する
昇格完了({N}件):
✅ {description} → .claude/rules/promoted/YYYYMMDD-{id}.md [trust: {スコア}]
✅ {description} → .claude/skills/promoted-YYYYMMDD-{id}/SKILL.md [trust: {スコア}]
スキルは Claude が関連する場面で自動的に使用します。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
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.

