Skip to main content
skill CX Codex

agent-startup-and-context-ingestion — Claude Code skill: agent

A skill for anyone writing an agent's startup files: it covers the four failure modes of startup context and how a seat picks up its role and current operating mode.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add mvschwarz/openrig --skill agent-startup-and-context-ingestion -a claude-code
Open on GitHub

What agent-startup-and-context-ingestion does

This skill is about how an agent becomes useful after launch. It maps the startup surfaces: AGENTS.md overlays, role files, skills, rig specs, workflow specs, startup checklists and refocus messages. One section makes the point that startup files are address maps, not universal reading mandates — they should point at canonical sources rather than try to be one.

The four failure modes get their own treatment. A new agent starts from an old rig spec and misses the current operating mode. Guidance lands in a file that future agents read while running sessions never hear about it. A startup file turns into a dumping ground and loses its map role. An orchestrator passes implementation instructions along without preserving product intent. That last one has a practical consequence: an edit is not evidence that a running seat adopted it, so adoption needs an authorized refresh or observation at the next launch.

For task-scoped startup the skill suggests running rig whoami --json first, then resolving project.yaml -> mission.yaml -> active slice.yaml -> selected component or wave map -> addressed context. The lookup and precedence rule lives in docs/reference/product-journey-sdlc.md#resolve-the-selected-path. Skills in your profile are capabilities, not a mandatory reading list. Test the behaviour in a disposable fresh session by watching the actual reads and the next action, and don't clear a live seat just to check prose.

What it helps with

  • author startup files for a new agent: role, operating mode, boundaries
  • audit whether running agents got current guidance, not just old files
  • separate startup-file content from reusable skill content
  • design orchestrator-to-next-agent context transmission
  • spot a startup file that became a dumping ground instead of a source map

Example prompts for the agent

  • Audit my AGENTS.md and startup/context.md against the four failure modes in the agent-startup-and-context-ingestion skill
  • Use agent-startup-and-context-ingestion to check whether my startup files mix identity content with reusable SOPs
  • Design orchestrator-to-next-agent context transmission with agent-startup-and-context-ingestion, keeping product intent intact

How to install agent-startup-and-context-ingestion

1Skills CLI (Vercel)

npx skills add mvschwarz/openrig --skill agent-startup-and-context-ingestion -a claude-code

2Manually: put the files in place

~/.claude/skills/agent-startup-and-context-ingestion/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/agent-startup-and-context-ingestion/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about agent-startup-and-context-ingestion

How do I install agent-startup-and-context-ingestion in Claude?

Run npx skills add mvschwarz/openrig --skill agent-startup-and-context-ingestion -a claude-code. The skill file then sits at ~/.claude/skills/agent-startup-and-context-ingestion/SKILL.md.

What does agent-startup-and-context-ingestion do?

It helps you design and audit how an agent picks up startup context: AGENTS.md overlays, role files, rig specs, startup checklists and refocus messages. It also walks through the four failure modes that break startup context.

How are startup files different from skills?

Startup files say who the agent is, what it works on and how the team operates, and they are authored per rig. Skills are reusable methodology and knowledge that travel between rigs. The skill advises against putting skill content in startup files and identity content in skills.

Source text

SKILL.md · Apache-2.0
---
name: agent-startup-and-context-ingestion
description: Use when designing or auditing how an agent becomes useful after launch — AGENTS.md overlays, role files, skills, rig specs, workflow specs, startup checklists, refocus messages, "rig context" surface. Covers the 4 failure modes that make startup context fail (old rig spec misses current operating mode; current agents never told about new guidance; startup file as dumping ground; orchestrator transmits implementation without preserving product intent).
metadata:
  cli_surfaces_referenced:
    - context
    - whoami
  openrig:
    stage: factory-approved
    sibling_skills:
      - claude-compaction-restore
      - session-compaction-and-restore
      - agent-starters
      - session-source-fork
      - seat-continuity-and-handover
---

# Agent Startup and Context Ingestion

How an agent becomes useful after launch: **AGENTS.md overlays, role
files, skills, rig specs, workflow specs, startup checklists, refocus
messages**, and the current `rig context` retrieval and profile surface.

It is the current concrete startup path inside the broader
context-engineering-and-retrieval primitive. Startup gets a seat into
the right initial shape; context engineering is the larger question of
how a seat gets the right context for the work it is doing right now.

**Most coordination failures are not tool failures; they are context
failures.** Agents need to know their role, operating mode, coordination
convention, boundaries, and current product intent. If startup context
is scattered or stale, agents execute the wrong thing very efficiently.

## Use this when

- Authoring a new agent's startup files (role / culture / startup-context)
- Refreshing a seat that's been running on stale guidance
- Auditing whether agents got the current operating mode (not just what's in old files)
- Designing the orchestrator → next-agent context-transmission shape
- Building a startup map for OpenRig-building rigs

## Don't use this when

- The agent is being created via Agent Starter — the starter's manifest carries startup context
- The work is artifact-backed mental-model rebuild from a packet — that's `session-compaction-and-restore`
- The intent is to ship reusable startup content as a skill

## Failure modes (4)

1. **A new agent starts from an old rig spec and misses the current operating mode.** Specs go stale; current state must be visible at startup, not just historical config.
2. **Guidance is written to a file that future agents read, but current agents are never told.** File edits don't propagate to running sessions. Cultural rollout (broadcast + fleet-changes-feed) is needed alongside file edits.
3. **A startup file becomes a dumping ground and loses the map-to-canonical-sources role.** Startup should point AT canonical sources; it shouldn't TRY to be one.
4. **The orchestrator transmits implementation instructions without preserving product intent.** Instructions decay; intent travels.

## Task-scoped startup

Run `rig whoami --json`, then resolve `project.yaml -> mission.yaml -> active
slice.yaml -> selected component or wave map -> addressed context`. The complete
lookup and precedence rule is `docs/reference/product-journey-sdlc.md#resolve-the-selected-path`
(installed: `$OPENRIG_HOME/reference/product-journey-sdlc.md#resolve-the-selected-path`).
Read the selected addresses and source needed for this task; skills available in
your profile are capabilities, not a mandatory reading list. No composition means
light Part A. Role names and idle seats add no gates. Explicit rigor and authored
wave boundaries retain their named checks.

Startup files are address maps, not universal reading mandates. Do not preload
unrelated planning/review doctrine or require per-file ACKs and quizzes. Skill
availability is distinct from loading its full body. An old packet does not choose
the current work. Missing selected context is a named gap to resolve.

## Proof standard

In a disposable fresh session, observe the actual reads and resulting next action.
Test no-selection, explicit rigor, and wave-boundary cases. An edit is not evidence
that an already-running seat adopted it; adoption needs an authorized refresh or
next-launch observation. Do not clear or re-prime a live seat merely to test prose.

## Cross-runtime startup paths (5; do not collapse)

When a seat's startup is artifact-backed mental-model rebuild (active-work
reentry case, distinct from reusable Agent Starters / priming packs):

- See the **cross-runtime restore/reentry packet standard v0**
- Source-trust ranking applies: **`rig whoami` > target rigspec > bounded latest transcript > full transcript > touched-files > `restore-summary.json`**

## Memory surfaces consumed at startup

Inventory the selected startup inputs: AGENTS/role/CULTURE overlays, replay
context, and any declared restore packet or starter. Record where each comes
from, whether it is current, and why this task needs it. An available skill or
old packet does not select the work.

Use the task-scoped startup path above to resolve current authority. Permission
to read an input is not permission to rewrite its source; writes follow the
active project/rig policy and assignment. Load
`skills/openrig-operating-model/SKILL.md` with `rig context get` when deciding
where durable context belongs.

## Startup files vs skills (the distinction)

Per `agent-startup-guide.md` (product reference doc) and the team handbook:

| Startup files | Skills |
|---|---|
| Rig-specific, role-specific identity | Reusable SOPs / methodology / knowledge |
| Tell agent WHO it is, WHAT it's working on, HOW this team operates | Tell agent HOW to do something (transferable across rigs) |
| Examples: `role.md`, `CULTURE.md`, `startup/context.md` | Examples: `openrig-user`, `test-driven-development`, `vault-user` |
| Authored per-rig | Authored once, used everywhere |

Don't put skill content in startup files. Don't put identity content
in skills. The 7-layer additive startup model (agent / profile / rig /
culture / pod / member / operator) handles the layering.

## See also

- `mission-slice-sop` — load when starting assigned mission/slice work; the light artifact and handoff procedure for SPEC.md, NOTES.md, PROGRESS.md and proof. It does not choose the SDLC for the task.
- `forming-an-openrig-mental-model` skill — orientation for new agents
- `session-compaction-and-restore` skill — restore-time startup ingestion
- `agent-starters` skill — reusable starter manifests that compose startup context
- `openrig-operating-model` skill — placement and authority of durable context
- `openrig/docs/reference/agent-startup-guide.md` (product reference doc; not a skill) — the 7-layer additive startup model + delivery hints

© mvschwarz · Apache-2.0 · mvschwarz/openrig

Similar skills

All skills for Agent setup: memory, context, orchestration →

From the same set14

context-engineering A skill about how an agent's context window gets filled, pruned and shared. Useful when an agent drifts or forgets constraints mid-task. CX Codex +1 ★ 8,172repo stars orchestration-team An orchestration skill: it splits work into assignments, dispatches them, and watches for idle or blocked agents instead of doing the implementation itself. CX Codex +1 ★ 8,172repo stars requirements-writer Talks a product manager through rough feature notes and turns them into a single SPEC.md with observable acceptance criteria and explicit scope. CX Codex +1 ★ 8,172repo stars exec-summary Turns a feature folder into one 600–800 word document: a sales pitch, a leadership brief and a behavioral overview for engineering. CX Codex +1 ★ 8,172repo stars watchdog A skill for configuring rig watchdog policies: it picks the right intervention when an agent goes idle, drifts, or needs a checkpoint. CX Codex +1 ★ 8,172repo stars session-source-fork A skill for authoring rig specs: it starts a new managed seat from a prior Claude or Claude conversation without claiming the old seat continued. CX Codex +1 ★ 8,172repo stars openrig-upgrade Walks an agent through an OpenRig CLI and daemon upgrade one step at a time: inspect, mutate, observe. Useful when live seats matter. CX Codex +1 ★ 8,172repo stars messaging-the-human This skill covers the mechanics of an agent messaging a human through rig: filing a decision request or a quiet update, then handling the reply. CX Codex +1 ★ 8,172repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor