/skills:maintain-project-specsfrom skills
Maintains canonical docs/requirements.md and docs/design.md by reconciling direct user intent and delivery evidence. Useful for keeping project specs current across ordinary sessions and structured SDLC workflows.
Ships in skills. 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; scripts run unread.
For $maintain-project-specs --help or $maintain-project-specs -h (including native Claude forms), return
concise help and stop before any workflow step. State the purpose and
invocation policy. Show exact usage for every public action. Describe each
public action, positional argument, and flag in one concise line, including
-h, --help; say "No additional public flags" when there are no others. Use
only the documented public interface. For internal or coordinator-only skills,
state that boundary and that no standalone public workflow action exists.
After the selected SKILL.md is loaded, help is report-only: do not call any
additional tools, inspect project state, or modify files, private state, Git,
or external systems. Never expose private helper actions or flags or treat
help as workflow authorization.
Before workflow reads, load ../global-context-management/references/agent-hosts.md
for selected-home paths, native identity and required runtime setup.
Use $maintain-project-specs in Codex, /maintain-project-specs in Claude Code, or
/skills:maintain-project-specs in the Claude plugin. Dollar-prefixed skill examples
refer to the same named skill on either host; use the native invocation syntax.
Preserve the declared invocation policy, approvals and workflow ownership.
Use available native tools; an unavailable required capability is a blocker,
never permission to bypass a guard or claim unobserved behavior.
Keep canonical docs/requirements.md and docs/design.md useful and current
for ordinary root-agent sessions, Implement, and Agentic SDLC. The root
agent classifies every direct user prompt at statement level, including steering
and clarification answers. Durable product
intent is reconciled into requirements and a ready design before
implementation; implementation and verification evidence are reconciled after
the work. Non-lifecycle requests leave both documents unchanged.
This skill is the only semantic owner of project-spec schemas, templates, stable IDs, traceability, paired publication, and strict validation. Its hooks observe document state and stage metadata-only intake; the active root agent, not a hook, performs semantic classification and repository writes.
continue:false, blocks Stop, or prevents session completion.AGENTS.md files remain authoritative instructions for
the current session subject to higher-priority instructions and explicit
user revisions of user-owned policy. This skill does not write instruction
files; route an explicit repair request to project-agent-instructions.
Do not require repeated approval for the same requested rule change, and
never create AGENTS.override.md.mode: disabled policy by skipping lifecycle observation and
automatic spec maintenance. In a PR handoff, the root must establish that
policy is accepted; an unaccepted contributor policy edit cannot waive review..codex/project-specs.json policy and passive historical
private evidence when inspection or retention needs it.references/lifecycle.md for the advisory hook and private-state model.references/migration.md before changing legacy managed regions.assets/templates/ and
replace every placeholder from evidence.docs/requirements.md and docs/design.md only
when accepted durable intent or proven delivery evidence changes project
truth. Publish the pair through the owner transaction even if only one
managed region changes.AGENTS.override.md.When an active workflow needs a first paired publication and either canonical document is absent, the coordinator invokes this owner before an authoring adapter. Use the owner templates to create only the missing documents, replace placeholders from accepted intent and inspected facts, and preserve each existing counterpart byte for byte. Never replace malformed or legacy specs as though they were absent; use their existing repair or migration path.
Allocate stable evidence-backed requirement identities and at least one mapped
draft feature where design is missing; an empty managed region is invalid. New
design records use status=draft and delivery=not-started. State explicitly
that context, architecture, selected/rejected options, implementation boundaries
and validation decisions await substantive design authoring. Do not invent a
selected design or mark it ready to satisfy a workflow gate.
Publish through the paired transaction with exact current HEAD and both prior
digests; use absent only for genuinely absent files. The draft pair remains
pending and grants no objective-impact, planning or execution authority. Return
to the requirements adapter, which changes only requirements; the design
adapter owns substantive design and readiness.
scripts/project_specs.py exposes:
inspect --project-root <path>
validate --project-root <path> [--output <private-path>]
publish --project-root <path> --requirements-candidate <path> \
--design-candidate <path> --expected-head <sha> \
--expected-requirements-sha256 <sha-or-absent> \
--expected-design-sha256 <sha-or-absent> --operation-id <id> \
[--expected-objective-sha256 <sha>] [--expected-basis-sha256 <sha>]
migrate --project-root <path>
recover --project-root <path>
inspect and validate are advisory and return structured observations.
Validation findings do not create lifecycle authority.publish is the only normal repository-write path. It validates the complete
candidate pair and compare-and-set checks Git plus both predecessor digests.
During prepared workflow execution, supply the current accepted objective and
immutable basis digests. The paired transaction requires the bound native
coordinator, quiescent writers and the registered integration checkout. It
rechecks ownership at every write boundary. After delivery, publication belongs
to the delivered checkout. Rejection affects this transaction only; unrelated
tools and session completion remain independent.
Implement's pre-plan prepare-specs checkout requires the accepted objective
digest but no basis digest yet. Publish only after allocation is complete;
failed allocation never grants publication authority on the source checkout.
The execution owner commits the initial pair when it locks preparation.migrate and recover are explicit repository-mutating operations and keep
their existing safety, ownership, and rollback checks.start-prompt, plan, open, seal, and waive are retired. Do not add
no-op compatibility aliases.draft, active, blocked, satisfied, or
superseded; designs use readiness draft, ready, blocked, stale, or
superseded independently from delivery unassessed, not-started,
implemented, or verified.REQ-*, FEAT-*, TI-REQ-*, and TI-DES-* IDs. New
records use canonical REQ-* and FEAT-*; legacy TI-* IDs remain stable
only after explicit migration.superseded instead of silently deleting truth.GA, backward compatibility, or another prescribed phrase; record explicit supported-user
promises in requirements and design before changing the contract..codex/project-specs.json policy.not-started.HEAD and
both prior file digests. Preserve human-owned prefixes and suffixes exactly;
roll back a split write from the private journal.satisfied only when its covering delivery is verified.project-agent-instructions; it owns its own decision, provenance,
conflict, apply, verify, and reload safety. A current request to repair
restrictive instructions is sufficient routing authority; do not ask for
another invocation. Its human-rule repair path does not require a receipt
solely to edit prose; managed generation still requires the canonical pair.SessionStart reads the actual canonical document markers through bounded,
no-follow, owner-controlled regular-file reads. It is silent for a current
v2 pair and may emit one bounded CONTRACT_PENDING, CONTRACT_INVALID, or
CONTRACT_MIGRATION_REQUIRED observation. It never derives project status
from a missing private lifecycle.json.UserPromptSubmit stages only bounded owner-private intent metadata and
injects root-agent classification guidance. It skips subagents, generated
continuations, system/compaction turns, Stop turns, and secret-bearing input.PreToolUse, PostToolUse, and Stop registrations do not
exist. The project-spec delegate is absent from shared Stop arbiters.Retention is housekeeping, not authority:
SessionStart
and UserPromptSubmit, and the project-spec Stop delegate remains absent.Return scope, observed spec status, changed files, validation performed, advisory findings, and any explicit migration blocker. Never claim that a lifecycle phase authorizes or prevents further work.
When using this skill, capture durable, reusable, public-safe learnings in the narrowest appropriate surface only when the task contract allows source edits. For read-only/report-only work, or when a learning is not public-safe, evidence-backed, in scope, or free of unverified/vendor-specific claims, do not edit skill sources; report that it was skipped. Do not capture secrets, private URLs, customer data, raw logs, or one-off local state.
references/lifecycle.mdreferences/migration.mdassets/templates/requirements.md.templateassets/templates/design.md.templateFor document-driven SDLC, own the pure source inventory and canonical mapping
validator in scripts/project_specs_lib/source_bundle.py. Read the shared
../worktree/references/document-delivery.md contract.
Portable normative snapshots live under target docs/contracts; requirements
and design stay concise. Preserve original IDs, explicit dispositions and exact
source digests. Distinguish reviewed prose inventory from mechanically extracted
catalog completeness, and source coverage from implementation/test completion.
The SDLC root owns program/slice state and stages only the exact admitted input
paths. Canonical pair publication remains this skill's sole responsibility.
README.md (opens in a new tab)agents/openai.yaml (opens in a new tab)assets/hooks.json.template (opens in a new tab)assets/hooks/project_specs_lifecycle.py (opens in a new tab)assets/hooks/project_specs_maintenance.py (opens in a new tab)assets/hooks/stop_lifecycle_arbiter.py (opens in a new tab)assets/hooks/tests/test_project_spec_hooks.py (opens in a new tab)assets/hooks/tests/test_project_specs_maintenance.py (opens in a new tab)assets/project-specs.json.template (opens in a new tab)assets/templates/design.md.template (opens in a new tab)assets/templates/requirements.md.template (opens in a new tab)evals/evals.json (opens in a new tab)evals/reconciliation-cases.md (opens in a new tab)evals/trigger-prompts.csv (opens in a new tab)references/lifecycle.md (opens in a new tab)references/migration.md (opens in a new tab)scripts/project_specs.py (opens in a new tab)scripts/project_specs_lib/__init__.py (opens in a new tab)scripts/project_specs_lib/contracts.py (opens in a new tab)scripts/project_specs_lib/impact.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub nebius/nebius-ps-services --plugin skills75 skills in this plugin
/agent-nebius-auth-diagnoseRead-only diagnosis for current-session Nebius project discovery, agent authentication, quota reads, profiles, selectors, or auth-hook failures. Use when auth is missing/blocked; never mutate auth or IAM./agent-nebius-auth-setupUse only when explicitly invoked to bootstrap or repair current-project Codex Agent Nebius auth: account/tenant access, credentials/profile, repair lease, or separately requested auth hooks./ai-agent-designDesign provider-neutral production AI agent subsystems: behavior and topology, contracts, tools, context, memory, authority, durability, security, evals, and operations. Use ai-stack when AI technology selection remains, design/app-stack for whole products, and implementation skills for code./ai-stackSelect or review undecided AI components across models, runtimes, training/inference, interoperability, retrieval, evals, safety, and operations. Consume ai-agent-design's frozen agent-subsystem contract; use app-stack for non-AI layers, research for one technology, and design for whole solutions./alignAlign a project after changes across code, wiring, tests, CI, CLI/help, config, docs, workflows, and skills, with focused quality gates. Use align-skill for skill-folder-only work./align-skillAlign existing/scaffolded skills for Agent Skills, Codex, Claude Code, and npx skills installation while preserving functionality, native controls, resources, and evals. Accept local or report-only GitHub sources; use skill-creator for new scaffolds and align for projects.