ワンクリックで
crd-context-update
Incremental PROJECT.md update using git diff. Only re-analyzes changed areas for efficient context maintenance.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Incremental PROJECT.md update using git diff. Only re-analyzes changed areas for efficient context maintenance.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Break down a PRD or CRD into self-contained implementation tasks for LLM execution. Use when you have a PRD/CRD file and want to generate executable task files for autonomous implementation.
Analyze the impact of a proposed change on an existing codebase. Identifies affected files, features, and potential breaking changes.
Deep codebase investigation to generate PROJECT.md context. Analyzes architecture, patterns, features, APIs, and schemas.
Orchestrates Change Request Document workflow. Manages context, captures changes, analyzes impact, and generates CRD files.
Handles one batch of tasks. Spawns task agents in parallel using git worktrees, waits for completion, and updates state.
Main entry point for hierarchical task execution. Orchestrates layer-by-layer implementation of PRD tasks with parallel worktree execution.
| name | crd-context-update |
| description | Incremental PROJECT.md update using git diff. Only re-analyzes changed areas for efficient context maintenance. |
| context | fork |
| agent | crd-context-updater |
| allowed-tools | Read Write Glob Grep Bash |
| model | claude-haiku-4-5 |
You perform incremental updates to PROJECT.md by analyzing only what changed since the last context hash.
| Argument | Required | Description |
|---|---|---|
--project <path> | Yes | Path to project root |
{project_path}/PROJECT.md<last-context-hash>cat {project_path}/PROJECT.md
Parse and extract:
<last-context-hash> value<features> list<api-registry> entries<schema-registry> entriesgit -C {project_path} diff {last_hash}..HEAD --name-only
Example output:
src/api/theme.py
src/components/ThemeToggle.tsx
src/hooks/useTheme.ts
src/models/user.py
tests/test_theme.py
README.md
Map changed files to context sections:
| File Pattern | Affects Section |
|---|---|
*/api/*.py, */routes/*.ts | <api-registry> |
*/models/*.py, */models/*.ts | <schema-registry> |
*/components/*.tsx, */services/*.py | <features> |
*/migrations/* | <schema-registry> |
package.json, pyproject.toml | Tech Stack (human section) |
For each affected section, do targeted analysis:
If API files changed:
# Get the actual changes
git -C {project_path} diff {last_hash}..HEAD -- "*/api/*.py" "*/routes/*.ts"
Look for:
If model files changed:
git -C {project_path} diff {last_hash}..HEAD -- "*/models/*.py" "*/models/*.ts"
Look for:
If component/service files changed:
git -C {project_path} diff {last_hash}..HEAD -- "*/components/*.tsx" "*/services/*.py"
Look for:
For each section with changes:
Adding new entries:
<features>
<!-- existing features unchanged -->
<feature id="theme" status="complete">
<name>Theme Support</name>
<files>src/hooks/useTheme.ts, src/components/ThemeToggle.tsx</files>
</feature>
</features>
Updating existing entries:
<feature id="settings" status="complete">
<name>User Settings</name>
<files>src/api/settings.py, src/components/SettingsModal.tsx, src/api/theme.py</files>
<!-- Added new file to existing feature -->
</feature>
Removing entries (if files deleted):
# Get current HEAD
git -C {project_path} rev-parse HEAD
Update meta section:
<meta>
<last-updated>{current ISO timestamp}</last-updated>
<last-context-hash>{new hash}</last-context-hash>
<!-- preserve other fields -->
</meta>
Write complete updated file preserving:
{
"status": "updated",
"context_hash": {
"previous": "{old_hash}",
"current": "{new_hash}"
},
"files_changed": 6,
"sections_updated": [
{
"section": "features",
"added": 1,
"modified": 1,
"removed": 0
},
{
"section": "api-registry",
"added": 2,
"modified": 0,
"removed": 0
}
],
"summary": "Added theme feature, 2 new API endpoints"
}
If only these file types changed, just update the hash:
tests/, __tests__/)*.md, docs/).github/, Makefile).vscode/, .idea/)Report:
{
"status": "hash_only",
"context_hash": {
"previous": "{old_hash}",
"current": "{new_hash}"
},
"files_changed": 3,
"sections_updated": [],
"summary": "No context-affecting changes. Updated hash only."
}
| Situation | Action |
|---|---|
| Invalid last-context-hash | Report error, suggest --full re-scan |
| Hash not in git history | Report error, suggest --full re-scan |
| PROJECT.md parse error | Report error, suggest --full re-scan |
| Merge conflict in git | Use current state, note in summary |
This skill should complete in under 2 minutes for typical changes. The efficiency comes from: