repo-foundation
できること
このツールは、既存のプログラミングプロジェクトに新機能を追加したり、バグを修正したり、一部の作業を始めたりするのに役立ちます。新しいプロジェクトの土台を作ったり、途中で止まっていた作業を再開したりする際にも使えます。
使う場面
- ✓プロジェクトに新しい機能を追加したいとき。
- ✓コードのバグを修正する必要があるとき。
- ✓新しいプロジェクトや、その一部の作業を始めるとき。
スキルのリンク
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/repo-foundation/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“このプロジェクトに、ユーザーのログインを記録する新機能を追加してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
ツールは現在のプロジェクトを分析し、既存の変更を保護しながら、新しい指示を整理して実装します。やり直しを避けることで、効率よく作業を進めます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Repo foundation
When to Use
- Use when the user asks to add a feature, fix a bug, or start a module in an existing project.
- Use when establishing the minimum foundation for a new repository or subsystem.
- Use when requirements authorize a schema, public-contract, ownership, or architecture migration.
- Use when resuming unfinished work or reconciling stale notes with repository evidence.
Build on a foundation that's just big enough, add features on top of it, and change the architecture only when requirements force it. Aim for the least total rework.
Core principles
- No universal dogma: don't impose a layout, error pattern, or framework the project doesn't need. Plain standard library is fine.
- Scope, baseline, and user work:
- Establish a clean baseline before mutating code: use the pre-existing revision/commit when Git exists; use a file inventory or snapshot when uninitialized or greenfield.
- In a dirty workspace, protect pre-existing uncommitted user modifications. You may edit distinct parts of the same file as long as user work is preserved. Stop and ask only if there is an actual collision or ambiguous intent.
- Never create commits or force Git initialization solely for handoff or tracking.
- Reuse conventions only with healthy repository precedent. Don't treat accidental patterns or temporary workarounds as precedent, and don't expand into out-of-scope cleanup.
- Don't push, publish, deploy, change branch protection, install system hooks, or buy anything unless the user asks.
- Prose, naming, and restraint:
- Names reflect business domain concepts and ownership.
- Add comments only for information code cannot express: grounded rationale, non-obvious invariants, units, rounding, ordering, protocol quirks, or compatibility.
- Do not narrate syntax; do not invent tickets, incidents, owners, or production histories.
- Treat error and CLI text as contract surface: check callers and parsers before rewording.
- Never invent ticket, PR, or incident references. An inaccessible or unverified reference is not evidence of fabrication. Preserve existing references unless repository evidence establishes that they are incorrect or obsolete; report material uncertainty instead of deleting them.
- Do not strip valuable comments merely for cosmetic brevity; do not enforce arbitrary comment ratios.
- Do not add abstractions, wrappers, or factory layers without concrete ownership, contract, or test seam needs.
- Preserve consumed public contracts as defined in
references/shared-contracts.md§1: keep documented types, values, errors, and serialization. Change a contract only when the task clearly authorizes it, then update callers, tests, and docs in scope. - Verification rigor & proportionate testing:
- Record baseline failures and distinguish: (1) pre-existing failures outside scope, (2) in-scope failures to fix, (3) regressions from current changes, and (4) environment errors.
- Verify the final code state; never use pre-cleanup test results to certify modified code.
- Add or update persistent tests when a change introduces behavior, fixes a defect, alters a contract, or exposes a meaningful coverage gap. Prefer the repository's existing test framework and structure. Do not add tests solely for file-count or coverage optics. For documentation-only or mechanically verified changes, use the relevant lightweight checks and explain any material verification gap.
- Check every requirement before you say you're done. Say what you verified, what you only read, and what you assumed. A command that exits 0 doesn't count if the file it should make isn't there.
- Failure invariants & state preservation: if an operation can fail halfway, decide what must stay untouched. Validate inputs and ownership first, build the replacement on the side, keep the old state until the new one is ready, and test the failure boundary.
Mode selection
| Mode | Trigger | Core Actions | Exit Criteria |
|---|---|---|---|
| Bootstrap | New repository from scratch or an area lacking minimal foundation (no build/test/run commands, conventions, or boundaries). | Elicit critical constraints, choose just-enough design, set up minimal tooling/checks, implement and verify the first representative slice. Read bootstrap. | Representative slice works and is verified; run/build commands are documented; repo is stable for subsequent work. |
…
よくある質問
「ユーザーの編集を保持する」とはどういう意味ですか?
すでにコードの変更を始めている場合でも、ツールがその作業を消すことはないという意味です。新しい指示を、すでに行った作業と統合するよう努めます。
「public contract」とは何ですか?
コードの異なる部分同士がやり取りする方法についての取り決め(公開契約)です。ツールは、必要に応じてこの取り決めが正しく維持・更新されるようにします。
ツールはプロジェクトの設計構造を変更しますか?
新しい要件を満たすために必要不可欠な場合に限ります。やり直しを避けるため、変更は必要最小限にとどめるよう努めます。
詳細
作者による元の説明
Implement features, fixes, modules, contract migrations, and resumed work while preserving user edits and authorized public contracts.
人気
- GitHubのスター
- 48k
- ランキング
- #5615
- ライセンス
- MIT
- 更新日
- 2026/10/15
コメント
- …
このリポジトリの他のスキル
00-andruia-consultant
48kエージェントがAIプロジェクトの立ち上げや改善を支援します。コードを分析し、ツールを提案し、スペイン語で行動計画を作成します。
007
48kエージェントがセキュリティ監査と脅威モデリングを行えるようにします。攻撃や脆弱性からプロジェクトを守るのに役立ちます。
10-andruia-skill-smith
48kエージェントがAIツールの作成や改善を支援します。ツールの動作を定義し、ドキュメントを書き、構造を検証します。
20-andruia-niche-intelligence
48kエージェントが特定の業界に関する要約を作成できるようにします。信頼できる情報源を使って、プロジェクトの背景、ルール、利用パターン、リスクを把握するのに役立ちます。
似ているスキル
api-connector-builder
280kエージェントが既存のパターンに従って、新しいAPI連携を構築します。新しい方式を作らずに、もう一つ連携を追加したいときに使います。
api-design
280kエージェントがベストプラクティスに沿ってREST APIを設計できるようにします。APIの通信方法、エラーの表示方法、データの整理方法を決めるのに役立ちます。
backend-patterns
280kエージェントのサーバーサイドのアーキテクチャパターンとデータベースの最適化を支援します。サーバー上で動くコードを作成またはレビューするときに役立ちます。