Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion PROMPT.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ profileはdefaultであって目的ではありません。Constitutionのguaran
- agent関連の設定: root instructions、既存のAgent Skills、plugin / MCP設定
- 技術stack: language / framework / runtime / SDKの実version、manifest / lockfile、workspace構成
- Web該当性: HTML/CSS・DOM・ブラウザ側JavaScript / Web UIの有無と対象ブラウザ範囲(該当する場合は `skill-selection` の `web-platform` 初期候補を確認)
- Lean 4該当性: `.lean`・`lean-toolchain`・`lakefile` の有無と定理証明の作成・修正の対象範囲(該当する場合は `skill-selection` の `lean4-proof` 候補を確認)
- 視覚レビュー該当性: UI変更の rendered screenshot を回帰・coherence 観点でレビューする必要があるか(該当する場合は `skill-selection` の `visual-review` 候補を確認。局所レビューと freeze 後の包括レビューは quality-gate の visual review handoff に従う)
- UI task review該当性: 実際の操作画面と代表タスクの有無、重要な導線・状態・回復の評価が必要か(該当する場合は `skill-selection` の `functional-ui-review` を判定する。trial-pending 候補の自動導入はしない)
- 開発環境: devcontainer / Containerfile / Nix / `mise.toml`、host(macOS / WSL / Linux)差の扱い
- 品質: test / lint / type / build、smoke・integration・E2Eの基盤、CI(GitHub Actions)
- コード構造: 変更先の兄弟entry、似た名前、責務の所有者、利用側の既存実装
Expand Down Expand Up @@ -83,7 +86,7 @@ mise・Cloudflare CLI(`cf`)・secret providerなどのtool defaultはprofile

導入するSkillは `skill-selection` の手順で選んでください。手順の要点は次のとおりです。

- 必要な能力を `catalog/capabilities.tsv` の条件でprojectごとに判定します。コードがあるprojectでは単独のリネーム依頼がなくても `code-naming` を選定します。Web UI/ブラウザ側実装を含むprojectでは `web-platform` の候補を初回に優先評価します。
- 必要な能力を `catalog/capabilities.tsv` の条件でprojectごとに判定します。コードがあるprojectでは単独のリネーム依頼がなくても `code-naming` を選定します。Web UI/ブラウザ側実装を含むprojectでは `web-platform` の候補を初回に優先評価します。 UI の代表タスクに関する機能美評価が必要なら `functional-ui-review` の候補も検討し、未 release / 未実測の候補は既定導入しません。
- 候補を `catalog/candidates.tsv` と外部の探索から集めて評価し、能力ごとに担当を決めます。
- 外部packの入口(router)は入れず、個別のSkillだけを入れます。
- project-localに `--copy` で導入し、Skillのfileと `skills-lock.json` をcommitします。
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,8 @@ npx skills add rebuildup/project-init --skill '*' --agent codex
- `orca-frontend` — Orcaを任意のworktree / agent terminal frontendとして併用し、lifecycle・作業の正本・orchestration stateをOrcaに依存させない
- `skill-selection` — 能力ごとに担当Skillを1つ決め、外部Skillを個別に導入して `skills-lock.json` と採否を記録する

Lean 4の証明作成・修正には、[公式 `leanprover/skills`](https://github.com/leanprover/skills) の `lean-proof` を優先候補とします。Mathlib本体をビルドする場合に限り `mathlib-build` も候補になります。対象projectの `skill-selection` で必要性を判定して個別導入し、上流Skillをこのrepositoryに複製・再実装しません。

## Core principle

> Constitutionはtool/provider-independentなorganizational propertyだけを定義する。現在のGitHub / Linear / release branch / Worktrunk / mise / Skill等は、それらを満たすOperating Model / Practiceであり、同等以上のguaranteeを示せるより良い手段へ置換できる。agentはprocedure compliance自体ではなく、Constitutionとexplicit decisionの制約下でproject全体を最適化する。
Expand Down
6 changes: 5 additions & 1 deletion catalog/candidates.tsv
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ quality-gate rebuildup/project-init skills/quality-gate/SKILL.md quality-gate de
design-refinement rebuildup/project-init skills/design-refinement/SKILL.md design-before-build default auto MIT read self 2026-10-17 project-initの正本
engineering-decisions rebuildup/project-init skills/engineering-decisions/SKILL.md engineering-decisions default auto MIT read self 2026-10-17 project-initの正本
correctness-assurance rebuildup/project-init skills/correctness-assurance/SKILL.md correctness default auto MIT read self 2026-10-17 project-initの正本
lean-proof leanprover/skills skills/lean-proof/SKILL.md lean4-proof default auto Apache-2.0 read 7d3da028 2026-11-22 Lean 4公式。定理の作成・修正に限定。tactic逐次診断とproof cleanup、最終sorry無しを明記。correctness-assuranceの保証設計を置換しない
mathlib-build leanprover/skills skills/mathlib-build/SKILL.md mathlib-build default auto Apache-2.0 read 7d3da028 2026-11-22 Lean 4公式。Mathlib本体のcache/targeted build用。Mathlibを依存として使う一般のLean projectへ一律導入しない
code-naming rebuildup/project-init skills/code-naming/SKILL.md code-naming default auto MIT read self 2026-10-23 新規実装とリネームで参照箇所の明確さ・意味の区別・互換性を判断する正本
security-maintenance rebuildup/project-init skills/security-maintenance/SKILL.md security-advisory default auto MIT read self 2026-10-17 project-initの正本
security-audit rebuildup/project-init skills/security-audit/SKILL.md security-audit default auto MIT read self 2026-10-17 project-initの正本
Expand All @@ -22,7 +24,9 @@ natural-japanese rebuildup/writing-skills skills/natural-japanese/SKILL.md prose
writing-discipline rebuildup/writing-skills skills/writing-discipline/SKILL.md prose-artifact default auto MIT read a11bb3b 2026-10-17 writing-skillsが正本。どのprojectでも必要になる
skill-authoring rebuildup/writing-skills skills/skill-authoring/SKILL.md skill-authoring default auto MIT skimmed 7ba09d1 2026-10-17 Skillをprose artifactとして書くための指針
design-intent rebuildup/design-skills skills/design-intent/SKILL.md visual-design default auto MIT read 342d709 2026-10-17 visual directionを実装前に固めるbrief。design-skills内で最も単独で機能する
composition-review rebuildup/design-skills skills/composition-review/SKILL.md visual-design watch auto MIT skimmed 97deb07 2026-11-22 完成構図の原則監査(Gestalt/CRAP/hierarchy/balance/whitespace/media art direction/responsive)。design-skills PR #192 で release-0-6-0 向けに追加中・未リリースのため watch。my-web-2026 #1128 Composition Lint の正本側 Skill。リリース後に read 評価へ昇格を検討
composition-review rebuildup/design-skills skills/composition-review/SKILL.md visual-composition-audit default auto MIT read v0.6.0 2026-11-22 完成構図の原則監査(Gestalt/CRAP/hierarchy/balance/whitespace/media art direction/responsive)。design-skills v0.6.0 でリリース済み。my-web-2026 #1137 で vendoring し、#1135/#1136 の L-C 実画面レビュー(docs/verification/design/1135-lc-review/)で使用済み。visual-design(作る)と対になる監査側の担当として default 昇格
visual-review rebuildup/design-skills skills/visual-review/SKILL.md visual-review watch auto MIT read 8868a64 2026-11-23 screenshot 駆動の visual review 手順(regression/coherence/first encounter、証拠ベースの finding、bounded rerender)。design-skills #200 で agent review ハーネス連携を追加中・未 release のため watch。my-web-2026 の L-C 実画面レビューで使用実績あり。release と実 project trial の確認後に default 昇格を検討
functional-aesthetics-review rebuildup/design-skills skills/functional-aesthetics-review/SKILL.md functional-ui-review watch auto MIT read 118efc77f 2026-11-23 主要taskを中心に実画面のaction発見・情報選択・不要な摩擦・一貫性・feedback/recoveryを監査する。設計正本はdesign-skills #197(未release、trial-pending)。上流releaseと代表実画面trialの双方を確認してからdefault昇格する。composition-review・visual-reviewとは別能力
modern-web-guidance GoogleChrome/modern-web-guidance skills/modern-web-guidance/SKILL.md web-platform default auto Apache-2.0+CC-BY-4.0 read 4dd9683 2026-11-13 Chrome/Edge/Firefox/MDN参加のWeb標準ガイド。検索・取得で必要な知識だけを参照できる。Web UI・HTML/CSS・ブラウザ側JS向けに優先評価し、backend/infra-onlyには導入しない。上流の広いMANDATORY triggerを組織共通routerに転用しない
* rebuildup/design-skills skills visual-design watch auto MIT skimmed 342d709 2026-10-17 82 Skillの網羅型で、descriptionから正しいSkillを選べるか未検証。Inspect→Extract→Translate→Implement→Verifyの核へ再編予定
motion-system rebuildup/design-skills skills/motion-system/SKILL.md motion-design default auto MIT skimmed 342d709 2026-10-17 motionの設計語彙と検証観点
Expand Down
5 changes: 5 additions & 0 deletions catalog/capabilities.tsv
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ debugging single コードがある 再現できる失敗のloopを作り、原
tdd single test基盤がある 失敗するtestを先に書く進め方
code-review multi コードがある diffを基準や仕様と照らして確認する観点
correctness single 重要な不変条件を持つ処理がある 不変条件の抽出と最小十分な保証手段の設計
lean4-proof single Lean 4で定理・補題・証明を新規作成または修正する Lean 4 の証明作成・エラー診断・未解決ゴールの整理
mathlib-build single Mathlib本体のソースをビルド・修正する Mathlibのcache取得と差分に応じたビルド
code-naming single コードがある、または新規コードを生成・変更する 初回実装から責務・階層・名前を整え、追加ごとに既存側と整合する
security-advisory single 外部dependencyがある 脆弱性情報の取り込みと優先度
security-audit single 未知のsecurity defectを能動的に探すことを選んだ coverageを明示した探索と独立検証
Expand All @@ -22,6 +24,9 @@ interaction-style single always userとのやりとり、質問の絞り方、bl
policy-evaluation single Skillやpolicyを変更する policyの評価、context budget
skill-authoring single repositoryでSkillを書く Skillの書き方
visual-design single UIや視覚的な成果物を作る 実例を観察し、構造を抽出し、翻訳して作り、出来上がりで確かめる
visual-composition-audit single 完成した画面・ページ全体の構図を監査する 完成した画面を一般的なデザイン原則(Gestalt 群化・CRAP・階層・グリッドと非対称・字面と scale・色と面・余白のリズム・メディアのアートディレクション・均衡・反復と統一・レスポンシブ再構成・IA と視覚表現の対応・認知負荷)と照らして監査し、欠陥を観察可能な特徴として記録する
visual-review single UI変更の rendered screenshot を回帰・coherence・first-encounter の観点でレビューする rendered 画面の screenshot を baseline・仕様・観察可能な特徴と照らしてレビューし、defect / spec-mismatch / suggestion を区別する
functional-ui-review single Web / application UIの実際のタスク導線を評価・改善する必要がある 視覚的な操作発見・情報の優先順位・摩擦・一貫性・feedback / recovery を利用者のtaskから監査する
web-platform single HTML/CSS・DOM・ブラウザ上のWeb UI/client-side JavaScriptを実装・更新する ブラウザ標準API、Baseline互換性、フォールバック、性能・アクセシビリティの実装指針
motion-design multi animationやmotion graphicsを作る motionの設計と検証
platform-cloudflare multi Cloudflareを使う Cloudflareのproductとtool
Expand Down
12 changes: 12 additions & 0 deletions skills/quality-gate/references/visual-review-handoff.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,18 @@ The handoff is an index of reviewable evidence, not a replacement for actual evi

Compile the scope from changed UI states, affected user journeys, layout constraints, platform risks and explicit acceptance criteria. Prefer focused regression evidence for changed surfaces and representative critical paths over a full screenshot dump. Cover relevant interactive states (loading, empty, error, input focus, accessibility, transitions), not only the idle default screenshot. Do not infer Windows-native validation from WSL, macOS, CI success or a remote terminal connection. When a project has a canonical design artifact (e.g., a design file with node identities), reference that version and the affected nodes; do not quietly treat an unapproved redesign as a matched implementation.

## Automated screenshot review (when the project provides one)

A project may ship an automated screenshot reviewer (e.g., dotfiles `agent review run`). Use it as a verification aid inside the same handoff — never as a replacement for the record or for human acceptance.

- **Local scope (during development):** run it on the changed surfaces/states only, under the same capture conditions as the handoff evidence.
- **Freeze / release-candidate scope:** run the wider representative matrix the project quality profile defines; do not add a full-matrix run to every small change.
- **Spec:** reuse the canonical spec shipped with the project's `visual-review` skill (design-skills `skills/visual-review/references/agent-review-spec.md`); do not copy prompts per project or per ticket.
- **Findings:** keep the `[defect]` / `[spec-mismatch]` / `[suggestion]` classes. Suggestions are not defects and must not become fix tickets by themselves.
- **Verdict:** `approve` covers only the reviewed images and spec for that run. It is not whole-product quality assurance and not human acceptance.
- **Evidence:** record model ID, spec version (`specSha256`), input images, findings, and quota consumption together with the result JSON.
- **Unknowns:** capture artifacts (broken-image icons, consent overlays), insufficient image coverage, and uncertain model verdicts are `unverified`, never `pass`.

## Minimal review record

An individual record or its aggregate manifest identifies:
Expand Down
13 changes: 4 additions & 9 deletions skills/skill-selection/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ repositoryの実際の状態から、各能力の `needed_when` が成り立つ

一覧にない能力が必要なら、その能力を行として追加する候補にする(§6)。

**コード品質の基本能力**: コードがある、またはコードを生成・変更するprojectでは、リネーム依頼がなくても `code-naming` を選定する。日常の実装開始・追加時にroot contractから参照できるようにする。`system-quality` と役割を分担し、Skill導入だけで品質成立と扱わず実コードで確認する。
**コード品質の基本能力**: コードがある、またはコードを生成・変更するprojectでは、リネーム依頼がなくても `code-naming` を選定し、`system-quality` と役割分担する(Skill導入だけで品質成立と扱わない)。

**Webの優先候補**: HTML/CSS・DOM・Web UI・client-side JSを扱うprojectは `web-platform` を初回判定し、`GoogleChrome/modern-web-guidance` を優先評価する。framework・デザイン・品質のSkillとは別担当。backend・infra・CLI専用には不要。
**領域別の優先候補**: Web(`web-platform` / `modern-web-guidance`)、Lean 4(`lean4-proof` / `mathlib-build`)、視覚・UIレビュー(`visual-design`・`visual-composition-audit`・`visual-review`・`functional-ui-review` は別能力として分離)の判定条件と昇格境界は [領域別候補とカタログ詳細](references/domain-candidates.md) を参照する。単にUIを変更しただけで毎ticketに全画面・実機レビューを追加せず、未release・未実測の候補(例: `functional-aesthetics-review`)を `default` や検証済みとして扱わない。

## 2. 候補を集める

Expand Down Expand Up @@ -66,7 +66,7 @@ frontmatterの `metadata.requires-skills`(空白区切りSkill名)を確認
- packを丸ごと入れず、`bunx skills add <source> --skill <name>` で個別に入れる。Web向け例: `bunx skills add GoogleChrome/modern-web-guidance --skill modern-web-guidance --copy`(revision・license・ブラウザ対応方針を確認)。
- `--copy` で導入し、導入されたSkillのfileと `skills-lock.json` を両方commitする。`skills-lock.json` だけでは再現にならないためである。2026-10時点の `skills experimental_install` は、lockの `computedHash` と照合せずに配布元の現在の内容を取得し、導入先も `.agents/skills/` に固定される。
- 更新は `bunx skills update` で行い、Skill fileのdiffをPRで確認してから取り込む。配布元の変更を、確認せずに取り込まないためである。
- 導入した複製は直接編集しない。複製の内容は `computedHash` と一致し続ける必要がある。hash方式は `skills-lock.json` の `version` で決まる: version 1 は各fileの相対pathと中身をpathの大文字小文字を区別しない順に連結したsha256、version 2(skills CLI 1.9以降)はCLIの `hashSkillFiles` と同じ byte-wise path sort・`path NUL length NUL content` framing・CRLF正規化・`metadata.json`/cache dir 除外のsha256である。project-initの `evals/policy-evaluation/vendored-skills-contract.mts` と同じ検査をprojectのquality gateに入れる。直したい点があれば、正本へPRを出す。
- 導入した複製は直接編集せず、内容が `skills-lock.json` の `computedHash`(v1 / v2 の仕様は [domain-candidates.md](references/domain-candidates.md))と一致し続ける状態を `vendored-skills-contract.mts` 同等のgateで検証する。修正は正本へPRを出す。
- 配布元がtagを付けているなら、`https://github.com/<owner>/<repo>/tree/<tag>` で導入してlockの `ref` をtagに固定する。commit SHAは `ref` に使えない。
- licenseが再配布を禁じるSkillはcommitしない。`skills-lock.json` にだけ記録し、必要な環境で導入する。
- `disable-model-invocation: true` のSkill(`candidates.tsv` の `invocation` が `manual`)は、agentが自動では起動しない。採用する場合は、root contractの能力表に「この場面ではこのpathを読む」と明記する。
Expand All @@ -87,9 +87,4 @@ project固有でない評価結果は、project-initの `catalog/` へ戻す。

## 記録の値

`candidates.tsv` の列の意味は次のとおりである。

- `status`:`default`(その能力の標準の担当)、`alternative`(担当の代替。併用はしない)、`reference`(導入せず考え方だけを参照)、`watch`(評価や改善の途中)、`excluded`(導入しない)
- `review_depth`:`listed`(存在と説明だけを確認)、`skimmed`(主要部分を読んだ)、`read`(全体を読んだ)、`evaluated`(比較評価まで行った)
- `invocation`:`auto`(descriptionで自動起動)、`manual`(明示的に呼ぶかpathで読ませる必要がある)
- skill列の `*` は、package全体や複数Skillをまとめた記録を表す。`default` には使えない。
`candidates.tsv` の `status` / `review_depth` / `invocation` / `*` の定義は [領域別候補とカタログ詳細](references/domain-candidates.md) を参照する。
Loading
Loading