/development-workflow:project-context-bootstrapfrom development-workflow
Build a compact read-only repository context snapshot before code changes, code review, PR/merge/deploy work, debugging, handoff, resumed agent work, or checking another agent's changes. Trigger when the next action depends on project rules, product decisions, memory/history, current git/PR state, or local skill availability; for tiny self-contained tasks, keep the snapshot internal and report only blockers.
Ships in development-workflow. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use this skill as the first pass in any repository when project truth matters. Its job is to turn scattered files, git state, and prior decisions into one compact operating snapshot.
.env values, private remote URLs, or long logs into chat.project-memory.md or any other context file unless the user explicitly asks to initialize project context.project-memory.md is operational memory: during an authorized change task, record only verified facts as they are established and immediately include each memory edit in the corresponding authorized commit. If commit is not authorized, do not edit memory. Do not add final or post-completion memory updates. Bootstrap and report-only tasks remain read-only; preserve unrelated dirty changes. This exception does not authorize creating missing memory, editing other documents or skills, changing product decisions, or commit/push, merge/deploy.Before any external or durable write, create one Target Lock record in the current context with target_kind, stable target_id, address or path, environment, source of truth, fingerprint or version, and the live read-back timestamp. A runbook, memory entry, copied URL, or previous chat is evidence to compare; it is not the live source of truth.
Read the live inventory for the target and compare every identity field before the first write and again before each subsequent write. If a required field is missing or differs, stop with context_stale, show the old -> current difference and its source, and keep write and retry count at zero. Do not repair a stale lock by copying an address, ID, or fingerprint from another target. An intentional migration is a separate explicitly named target state with its own owner approval and post-write read-back.
Keep the locked target attached to the requested scope. A changed target, environment, canonical repository root, or source-of-truth revision invalidates the lock and requires a new live read-back before work continues.
Before reading context, resolve the project root:
git rev-parse --show-toplevel
If git root is unavailable, inspect only the current directory and its immediate child directories for a Git checkout. When exactly one child resolves to a Git root, use that nested root and record the container-to-repository mapping in the snapshot. When several children are repositories, use an explicit user path, canonical path in project rules/memory, or remote identity; if the choice is still ambiguous, stop and ask instead of scanning broadly or guessing. Use the current working directory as a fallback only when no repository can be resolved, and mark Missing context: repo root unknown. In monorepos or nested workspaces, also check for the nearest applicable AGENTS.md between the current directory and the root.
From the resolved project root, read files that exist:
AGENTS.mdCLAUDE.mdproject-memory.mdhistory.md or HISTORY.mdREADME.md and nearby architecture docs such as docs/architecture.md, docs/context.md, docs/business-logic.md.codex/skills, .agents/skills, and .claude/skills/README.md; read only the SKILL.md files for skills selected by the task or router.Read AGENTS.md, project-memory.md, and the top of history.md carefully enough to capture current decisions and blockers. If another file is large, use rg for targeted lookups and state what was not fully read.
When inside a git repo, collect:
git status --short --branch
git log --oneline --decorate -5
git branch -vv
Cross-check any branch, PR, blocker, current-focus, and next-step claims in project memory against this Git snapshot and live PR evidence when available. A contradiction is context_stale, not permission to follow the stale instruction. During an explicitly requested context repair, update a clean target file from verified evidence. For report-only work or a target file with unrelated/unknown dirty changes, report the drift and do not overwrite it.
For PR-backed review, handoff of an existing PR, PR fix, PR finalization, merge, deploy, or "ready to merge/deploy?" work, PR/check/review evidence is mandatory. Prefer the strongest PR identifier available: user-supplied PR URL/number, then current branch PR, then gh pr status discovery. A local diff/code review with no PR uses Git state and relevant local checks; record PR evidence as not applicable, not unknown or blocking. If PR evidence is actually required but GitHub CLI is unavailable, the repository cannot be inferred, or access is missing, mark that evidence as unknown/blocking instead of guessing.
gh pr view <pr-url-or-number> --json url,state,headRefName,baseRefName,statusCheckRollup,reviewDecision
gh pr view --json url,state,headRefName,baseRefName,statusCheckRollup,reviewDecision
gh pr status
When working from a fork, detached worktree, or non-default remote, pass --repo <owner/name> to gh commands after deriving it from the PR URL or gh repo view --json nameWithOwner.
For dirty worktrees, classify files as current-task, pre-existing, generated, or unknown. Never reset or clean unrelated files. Before edits, if any target file is already dirty and its origin is unknown or pre-existing, enter fail_closed: show the exact dirty paths, the intended write allowlist, and the concrete collision risk, then ask one direct question. Do not write until Art answers that blocker explicitly after seeing those facts. A message about later review, PR, merge, deploy, or the broader goal does not authorize work over the named dirty files. If the answer is indirect, remain fail_closed and repeat only the unresolved question.
Redact private remotes, tokens, secrets in logs/history, raw PR output, and copied snippets.
Return a short block:
CONTEXT SNAPSHOT
Project:
Product/current truth:
Branch/PR:
Dirty tree:
Relevant rules:
Active decisions:
Open blockers:
Missing context:
Next safe action:
Do not:
For small tasks, keep this internal and mention only blockers. For handoff, review, PR, merge, deploy, or agent-error checks, show the block.
Only when the user asks to create project memory, add a project-memory.md using references/project-memory-template.md. Keep it short: current truth, active decisions, open blockers, next step. Do not copy chat transcripts into it.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub artypoul/gigma_skills --plugin development-workflowOther plugins' skills for the same job
17 skills in this plugin
/agent-session-executionUse for a multi-step task that needs explicit progress, safe action boundaries, waiting on real external work, or a clear completed/blocked state. Classify the action, track one active step, communicate material progress, and finish only with verified completion or a concrete blocker./capability-aware-executionUse when a request may need a specialist skill, real tool, connector, file, image, visualization, external integration, or durable artifact. Inspect what is actually available, route to the narrowest matching skill or tool, and report a gap honestly instead of inventing a capability or simulated result./