Configures Claude Code hooks and Codex hooks.json/notify. Use when adding PreToolUse guards, Stop hooks, managed hooks, format-on-save, preflight, audits, or worktree/budget hooks.
日本語の概要は準備中です。原文の説明を表示しています。
Context-driven AI development with AGENTS.md, repo knowledge bases, Claude Code, Codex, and Copilot. Use when adopting repo-native AI workflows or multi-repo setups.
インストールする前に、エージェントに与えられる指示の中身を確認できます。
Use this skill to design repo-native agent context that is portable, high-signal, and maintainable. It owns the context model, migration path, maturity assessment, and context-graph discipline across AGENTS.md, runtime-specific layers, specs, rules, hooks, compiled markdown knowledge bases, and related artifacts.
| Task | Use |
|---|---|
| Portable repo instructions | the agents-memory skill, references/fast-track-guide.md |
| Spec and plan flow | docs-ai-prd, dev-workflow-planning |
| Context graph design | references/context-graph-guide.md, python3 scripts/scan_context_artifacts.py --help, python3 scripts/validate_context_graph.py --help |
| Hot-tier staleness + supersession integrity checks | scripts/validate_context_graph.py (checks check_stale_tiers, check_supersession_integrity) |
| Query a context graph (PPR, BFS, fan-in, tier budget) | python3 scripts/query_context_graph.py <graph> --help (modes: --node, --impact, --rank, --ppr --seed, --tier-budget) |
| Compiled markdown knowledge layer | the docs-notes-retrieval skill, references/context-graph-guide.md, references/multi-repo-strategy.md |
| Multi-repo strategy | references/multi-repo-strategy.md, dev-context-multi-repo |
| Pick a framework (superpowers, GSD, Spec Kit, OpenSpec, …) | references/framework-selection-matrix.md |
| Regulated environment rollout | references/regulated-environment-patterns.md, assets/ai-agent-governance.md, assets/compliance-fca-emi.md |
AGENTS.md, CLAUDE.md, Copilot instructions, hooks, or agent rule layers.agents-memory skill.agents-subagents.AGENTS.md as the portable baseline.context-graph.json once a repo reaches structured-context maturity.Current context engineering should treat context as an evolving system, not a larger prompt. The strongest source-backed principles are:
Teams that ship fastest use the right tool for each task rather than forcing one agent to do everything. As of May 2026, the most effective pattern is:
| Tool | Best For | Context Model |
|---|---|---|
| Cursor / IDE agent | Day-to-day editing, inline completions, tab-to-accept, quick refactors | IDE-native: open files + project index |
| Claude Code | Complex agentic tasks, multi-file changes, agent teams, code review, architecture | CLI: AGENTS.md + .claude/rules + skills + subagents |
| Codex | Parallel background work, batch processing, CI-adjacent tasks | Threads: AGENTS.md + .codex/agents + sandboxed workers |
How to keep context consistent across tools:
AGENTS.md is the portable baseline — all three tools read it..claude/rules/, .codex/agents/, .cursor/rules/) extend the baseline for each tool's strengths.docs/ in the repo is universally readable — invest knowledge there, not in tool-specific memory.Anti-pattern: Duplicating conventions in Cursor rules, Claude rules, AND Codex agents. Write it once in AGENTS.md or docs/, then reference it.
Stack on top of the IDE layer when discipline drift or feature ambiguity is the bottleneck:
| Layer | Role | Pick from |
|---|---|---|
| L0 portable baseline | Cross-tool conventions | AGENTS.md |
| L1 runtime-specific | Tool-specific extensions | .claude/rules/, .codex/agents/, .cursor/rules/, .github/copilot-instructions.md, .clinerules/, Aider CONVENTIONS.md |
| L2 capability / methodology | On-demand or enforced discipline | Claude Code Skills · superpowers (obra/superpowers) · GSD (gsd-build/get-shit-done) |
| L3 artifact pipeline | Spec → plan → tasks → code | GitHub Spec Kit (.specify/specs/) · OpenSpec (Fission-AI, openspec/changes/) |
L0 is mandatory; L1 is mandatory for tools that don't read AGENTS.md natively; L2 and L3 are optional but high-leverage when their named symptoms are present. Full decision matrix, stack recipes, and anti-stacks in references/framework-selection-matrix.md.
context engineering request
-> identify toolchain, repo shape, and target agent behaviors
-> define portable baseline in AGENTS.md
-> split layers
+-- hot -> non-inferable execution policy
+-- warm -> compiled docs, hubs, indexes, context graph
+-- cold -> raw evidence and primary artifacts
-> add runtime-specific rules only where they unlock capability
-> run docs placement and context hygiene gates
-> validate graph, freshness, links, and contradictions
-> decide onboarding, pruning, automation, or maturity next step
Use layers intentionally:
AGENTS.md for hot shared execution policyCLAUDE.md and .claude/* only for Claude-specific behavior.github/* only for GitHub or Copilot-specific behaviorDo not assume one tool’s memory model maps cleanly onto another.
At small and medium corpus sizes, a maintained index plus concise summaries is often enough; do not add RAG just because a knowledge base exists.
Keep always-on context for:
Keep the compiled knowledge base for:
Keep out:
Before creating a context artifact, choose the smallest durable home:
AGENTS.md / CLAUDE.md for short execution policy and pointers onlydocs/tech/, docs/architecture/, docs/api/, or equivalent for stable truthdocs/operations/ or docs/runbooks/ for procedures and incident/release stepsdocs/reports/, docs/specs/, or docs/plans/ with lifecycle state and integration pathdocs/context/ or context/ with structured inputs and rebuild commandsraw/, evidence/, or repo-specific captures excluded from hot contextIf the artifact has no owner, lifecycle, index link, or rebuild path, do not create a new Markdown file. Update the closest canonical doc or keep the result in the task thread.
The strongest default is a three-layer repo-native system:
Humans should mostly edit the hot layer and review the compiled layer. The compiled and raw layers can be largely agent-maintained if validation and review gates are in place.
For portfolio hubs, add one more practical rule:
This is how you keep repo descriptions, concept notes, and system maps synchronized at scale.
Use a context graph to map relationships between:
Generate it when the repo reaches L2+ maturity and use it to assess loading tiers, blast radius, and stale dependencies before changing core artifacts.
The context graph complements the compiled markdown layer. Use the graph for relationship integrity and loading-tier analysis, then publish the useful findings back into markdown notes or reports.
When the repo is a native/mobile codebase, pair this skill with:
project.yml, .xcodeproj, or Package.swiftUse full spec-driven development when ambiguity would otherwise cause agent drift:
Use direct prompting for small fixes and low-ambiguity work.
For recurring hub maintenance, treat page generation as a compiler pass:
In regulated environments, context engineering must preserve:
If those requirements are real, treat context artifacts as part of the control surface, not just helper docs.
Default to one of these:
benchmarks/BENCHMARKS.md)AGENTS.md as a general knowledge base instead of a hot instruction layer.scripts/scan_context_artifacts.py, scripts/validate_context_graph.py, scripts/query_context_graph.py, schemas/context-graph.schema.jsonagents-memory skill, docs-ai-prd, dev-workflow-planning, agents-hooks, agents-mcp, agents-subagents, agents-swarm-orchestration, dev-context-multi-repo, dev-context-code-graphまだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
Configures Claude Code hooks and Codex hooks.json/notify. Use when adding PreToolUse guards, Stop hooks, managed hooks, format-on-save, preflight, audits, or worktree/budget hooks.
日本語の概要は準備中です。原文の説明を表示しています。
Configures and hardens Claude Code and Codex MCP servers. Use when connecting databases, APIs, SaaS, building servers, or serving a clearance-filtered knowledge base.
日本語の概要は準備中です。原文の説明を表示しています。
Owns instruction files: AGENTS.md, CLAUDE.md, personal and repo rules. Use when writing, pruning, auditing them, sharing rules across Claude and Codex, or fixing ignored rules.
日本語の概要は準備中です。原文の説明を表示しています。
Creates and audits agent skills: SKILL.md, references, scripts, runtime metadata. Use when writing, validating, or security-reviewing a skill, or fixing truncated skill listings.
日本語の概要は準備中です。原文の説明を表示しています。
Adds per-skill learnings loops for dated patterns, mistakes, and domain facts. Use when wiring skill memory, consolidation, or drift audits.
日本語の概要は準備中です。原文の説明を表示しています。
Chooses subagent, team, workflow, or debate and launches it on Claude Code or Codex. Use when delegating, running agent review boards, or installing shared agents.
日本語の概要は準備中です。原文の説明を表示しています。