/skills:project-agent-instructionsfrom skills
Manages project-specific AGENTS.md rules: create, refresh, adopt, retire, or repair restrictive instructions with receipt-bound ownership and recovery.
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, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
For $project-agent-instructions --help or $project-agent-instructions -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.
For managed generation, read references/claude-discovery.md before Claude
discovery, inspection, application or replay. That helper path keeps canonical
AGENTS.md and requires an existing tracked CLAUDE.md import. It binds
--agent and --agent-home on both hosts. Explicit human-rule repair instead
reads and patches the active native instruction source without creating imports
or requiring helper discovery. Respect native instruction precedence.
Use $project-agent-instructions in Codex, /project-agent-instructions in Claude Code, or
/skills:project-agent-instructions 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.
Maintain the smallest durable, project-specific agent contract that should
apply to every future session in one exact selected project. A valid decision
may be not-needed; requirements and design do not automatically justify a
file.
Generated repository content is portable. Personal global instructions are checked for conflicts but never copied into, or used to suppress otherwise necessary rules from, the project file. Ancestor project instructions do count when determining whether a project-specific rule is redundant.
Use only when the user explicitly requests project-instruction mutation or
maintain-project-specs routes an explicit repair request here. Managed
generation additionally requires its current canonical receipt. Implement and Agentic SDLC only read already-effective
instructions and may report advisory status; they never invoke, wait for, or
seal this workflow. Keep
policy.allow_implicit_invocation: false in agents/openai.yaml. Do not expose
a standalone public workflow command.
maintain-project-specs has issued its current canonical receipt and routes
an explicit project-instruction decision here.AGENTS.override.md.Receipt and runtime inputs below apply to managed generation. Explicit human-rule repair uses the selected scope, active instructions and exact patch preimage.
docs/requirements.md and docs/design.md.0600 spec-validation receipt in a caller-owned private
mode-0700 directory outside Git.<lifecycle-session>/runtime-config.json declaration. Use explicit
null and {} values when neither applies.inspect; lifecycle routing never
relies on the helper's environment fallback.references/decision-contract.md completely.inspect with
their owner receipt.runtime-config.json beside the workflow directory and
decision.json directly within it; these are non-authoritative inputs for
the explicit project-instruction workflow.<selected-project-root>/AGENTS.md only through
the helper and only for an authorized v3 transition. Human-authored prefix
bytes remain outside skill ownership.The selected-project file is committed product truth. Private receipts and state must never be committed.
This path applies when the current user asks to repair restrictive or outdated instructions, including across identified projects in the requested workspace. The request itself authorizes the specified rule change; do not ask the user to approve it again. Ordinary implementation and spec maintenance alone do not authorize instruction changes.
human-rules-repaired
separately from helper outcomes; do not fabricate decision or receipt
digests. Recommend a fresh session for future instruction discovery, while
continuing currently authorized work under the direct user instruction.Credential policy must distinguish task authority from secret disclosure: creating new credentials or secrets necessary for an authorized task's target and intended access scope does not itself need another confirmation. Store values only in the intended secret store or protected runtime file. Preserve approval for uncovered credential replacement/revocation, IAM access expansion, destructive actions or material impact, and never expose secret values in artifacts. Do not copy this generic policy into every generated project file; repair an existing conflicting clause or keep the default in its global owner.
The following process owns managed generation and refresh. Explicit human-rule repair above uses native focused editing and does not enter helper transitions.
inspect reruns that owner's fixed validator and requires exact receipt
equality.null and {} for the base case. Resolve the current
$CODEX_HOME/PROFILE.config.toml profile format before trusted project
config and runtime overrides. On Claude, follow references/claude-discovery.md
for native source declarations and imports. Treat the resulting selected project, layered
config, instruction chain, target classification, and recovery check as
authoritative. Run lifecycle-owned inspection as one uncomposed command
with explicit --agent <codex|claude> --agent-home and absolute current-session receipt, runtime,
private-root, and output paths.GA, backward compatibility, or
another prescribed phrase.project-agent-instructions.decision.v3 decision as the exact
private decision.json input. For needed,
provide structured rules; the helper renders all Markdown deterministically.
For the other dispositions, provide no rules.inspect, let the helper carry exact active authority from the
locked workspace-private ownership registry. When that subject has no
entry, the helper may bootstrap it once only from unanimous exact active
sealed history; any retirement, mismatch, unsafe evidence, or ambiguity
publishes a durable blocked subject state. Later evidence removal does not
rescan that subject; only exact-digest adoption supersedes the block. One
exact completed apply awaiting registry publication becomes a pending
generation that no observer may import and only its receipt/state writer may
recover. A current-session receipt may continue marker-only
provenance drift when its subject and body still match, but imported
continuity must match the current whole-target digest. Otherwise use
exact-digest adopt approval before taking ownership of an unreceipted
intact v3 region. Use exact-digest retire approval before removing an
intact managed region that is no longer needed. Never infer ownership or
event order from instruction discovery, marker presence, session IDs,
timestamps, or filesystem metadata, and never migrate v1 or v2 markers
automatically.render to produce the exact private rules file without mutating the
repository. Render
rejects a disposition that conflicts with the inspected target before it
publishes evidence. If the current-session decision is revised, changed
rules replace the prior private rules only under the private-bundle render
lock and after the final compare-and-swap revalidates the exact predecessor
state and rules bytes. Rerun the exact same render only when it returns
RENDER_STATE_PUBLICATION_INCOMPLETE; that result means rules are current
but their matching state I/O publication did not complete. The equal-bytes
retry re-syncs the private parent directory if replacement completed before
its directory sync failed. Never delete or overwrite that evidence directly.apply, then verify as this workflow's terminal
mutation. Never write or delete a managed region directly.reload_required: true, stop only this instruction-
mutation workflow and recommend a fresh session before relying on the new
rules. Implement and Agentic SDLC remain independent and may continue
under the instruction chain already loaded for their session.not-needed, state explicitly that no file was created or changed and that
a missing target remains absent.Change requirements rules for that default contract:
"This project has existing users. Preserve supported behavior and public
interfaces across changes; treat unintended compatibility breakage as a
regression." and "Breaking a supported API, CLI contract, configuration or
persisted format, or upgrade path requires explicit approval, a deprecation
or migration plan, and regression coverage. Keep internals on one canonical
path."not-needed is correct when no meaningful durable project rule remains.AGENTS.md is not evidence that one is needed. Missing plus
not-needed is a verified successful no-file outcome, not a creation
failure.RECOVERY_REQUIRED.not-needed alone.LEGACY_GENERATED_FILE; resolve it manually rather
than adding a compatibility path.SPEC_VALIDATION_REQUIRED: owner receipt is absent, malformed, or stale.DISCOVERY_CONTEXT_UNVERIFIED: effective config, profile, overrides, trust,
or selected-project marker context is ambiguous.RECOVERY_REQUIRED: a lock or backup requires explicit recovery.ADOPTION_APPROVAL_REQUIRED or RETIREMENT_APPROVAL_REQUIRED: exact target
authorization is missing.OWNERSHIP_CONFLICT: private ownership evidence is missing or stale.LEGACY_GENERATED_FILE: v1 state needs manual resolution.EXISTING_INSTRUCTIONS_GAP or INSTRUCTION_CONFLICT: human-owned active
instructions need resolution. Apply an already-authorized human-rule repair,
then inspect again; otherwise propose the exact unresolved change.RENDER_STATE_PUBLICATION_INCOMPLETE: rerun the exact same render once to
finish matching state publication and durability; do not alter its private
evidence.UNSAFE_TARGET, CONCURRENT_MODIFICATION, or STALE_GENERATED_FILE: stop
without bypassing the helper.Return unresolved blockers to the coordinator. Do not create a fallback, change rules without user authority, or remove recovery evidence automatically.
AGENTS.md; keep them in skills or
project docs.created, attached, refreshed, adopted, retired,
existing-sufficient, not-needed, human-rules-repaired, or a structured blocker.not-needed never implies that a
missing file should have been created.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.
Return selected project, active instruction source, outcome, target digest,
exact file effect, reload_required, and any blocker. For managed generation,
include decision digest and evidence paths; for human-rule repair mark those
helper fields not applicable. For not-needed, say that no file was created or changed and that a
missing target remains absent. Do not print raw private rationale, prompts,
credentials, or environment values.
README.md (opens in a new tab)agents/openai.yaml (opens in a new tab)evals/process-cases.md (opens in a new tab)evals/trigger-prompts.csv (opens in a new tab)references/claude-discovery.md (opens in a new tab)references/decision-contract.md (opens in a new tab)scripts/project_agent_instructions.py (opens in a new tab)scripts/project_agent_instructions_lib/__init__.py (opens in a new tab)scripts/project_agent_instructions_lib/claude_discovery.py (opens in a new tab)scripts/project_agent_instructions_lib/contracts.py (opens in a new tab)scripts/project_agent_instructions_lib/discovery.py (opens in a new tab)scripts/project_agent_instructions_lib/private_state.py (opens in a new tab)scripts/project_agent_instructions_lib/render_state.py (opens in a new tab)scripts/project_agent_instructions_lib/target_io.py (opens in a new tab)scripts/project_agent_instructions_lib/workflow.py (opens in a new tab)scripts/project_specs_retention.py (opens in a new tab)scripts/test_project_agent_instructions.py (opens in a new tab)scripts/test_project_specs_retention.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
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.