Work operating model

From rjmurillo/ai-agents · View interactive version

Work operating model is an AI agent skill from the GitHub repository rjmurillo/ai-agents. Run a 5-layer interview to elicit how a team actually works (rhythms, decisions, dependencies, institutional knowledge, friction) and emit a structured operating model. Use when you say \"elicit operating model\", \"interview team operating model\", \"how does this team actually work\", or \"validat

How to use this skill

Skill file

Work Operating Model

A conversation-first elicitation skill. Surface what is documented, what is tacit, and where the two disagree. Output is a structured operating model that downstream agents (architect, roadmap, orchestrator) can read.

Triggers

| Trigger Phrase | Operation |

|----------------|-----------|

| elicit operating model | Start the 5-layer interview |

| interview team operating model | Start the 5-layer interview |

| how does this team actually work | Start the 5-layer interview |

| resume operating model interview | Continue from the first layer not yet captured or skipped |

| validate operating model | Run scripts/validate_operating_model.py against an output JSON |

When to Use

Use this skill when:

Do not use this skill when:

Distinction From Adjacent Capabilities

| Capability | Investigates | Output |

|------------|--------------|--------|

| analyst agent | Code, repo state, bug paths | Findings document |

| explainer agent | Concepts, decisions for a reader | Explainer prose |

| retrospective agent | A bounded past period | Learning matrix |

| work-operating-model | Team operating reality (people-process) | Structured operating model JSON |

The 5 Layers

The interview proceeds in order. Each layer answers one question and produces one section of the output JSON. Skip a layer only when the team explicitly cannot answer it; record the gap in metadata.skipped_layers.

| # | Layer | Question | Output Section |

|---|-------|----------|----------------|

| 1 | Rhythms | When does work happen, and on what cadence? | rhythms |

| 2 | Decisions | Who decides what, and how is the decision recorded? | decisions |

| 3 | Dependencies | Who do you wait on, and who waits on you? | dependencies |

| 4 | Institutional Knowledge | What lives in someone's head and not in a doc? | institutional_knowledge |

| 5 | Friction | What is broken or slow that the team has accepted? | friction |

For the full prompt list per layer, read references/layer-questions.md. For the output JSON contract, read references/entry-contract.md.

Process

The interview runs in three phases.

Phase 1: Open

  1. Open: Confirm scope (team name, what they own, size). Write the team section.

Phase 2: Layer Pass

  1. Layer pass: For each layer 1 through 5, ask the question, capture answers, record them in the relevant output section. After each layer, summarize back to the user and confirm before moving on.
  2. Distinguish: For every captured item, mark it as documented (link the doc) or tacit (note the source person). Disagreement between sources is a finding, not an error.

Phase 3: Close and Validate

  1. Close: Write the JSON to <workspace>/operating-model.json (caller chooses workspace). Optionally also emit USER.md, SOUL.md, HEARTBEAT.md as human-readable views derived from the JSON. The JSON is canonical; the markdown files are projections.
  2. Validate: Run ( for d in "${CLAUDE_PLUGIN_ROOT}" "${COPILOT_PLUGIN_ROOT}" .claude; do if [ -n "$d" ] && [ -f "$d/lib/ptk_run.py" ]; then exec python3 "$d/lib/ptk_run.py" skills/work-operating-model/scripts/validate_operating_model.py <path-to-json>; fi; done; echo "ptk_run: no plugin root holds lib/ptk_run.py" >&2; exit 2 ). Exit 0 means the schema holds.

Scripts

| Script | Purpose | Exit Codes |

|--------|---------|------------|

| scripts/validate_operating_model.py <path> | Validate operating-model.json against schema v1.0.0 | 0 ok, 1 schema failure, 2 invalid usage |

For tests only, write --skip-path-validation inside the locator's argument list to bypass CWE-22 path containment when reading fixtures from outside the repo.

Resume Across Sessions

The interview is long. To resume:

  1. Read the existing operating-model.json.
  2. Build a resolved-layers set: include every string in metadata.completed_layers, plus the layer property of each object in metadata.skipped_layers (since skipped_layers stores objects like { "layer": "rhythms", "reason": "..." }, not plain strings). The next layer is the first layer (in the order of The 5 Layers table) whose key is not in this resolved-layers set. A recorded skip is a resolved disposition, not pending work, so never re-ask a layer that appears in metadata.skipped_layers.
  3. Continue from the start of that layer. If every layer key already appears in the resolved-layers set, there is no next layer: the interview is complete, so set metadata.interview_status to complete instead of resuming.

Do not silently rewrite an earlier layer. If a previous answer needs to change, open the discussion, then update the section and append to metadata.revisions.

Output Contract (Summary)

The full schema is in references/entry-contract.md. The minimum valid document has:

The validator (scripts/validate_operating_model.py) enforces these and returns a non-zero exit on schema failure.

Anti-Patterns

| Anti-Pattern | Problem | Fix |

|--------------|---------|-----|

| Treat the interview as a survey to fill in alone | Misses tacit knowledge entirely | Hold the conversation; capture during the talk |

| Merge documented and tacit into one bucket | Erases the gap that is the whole point | Tag every item explicitly |

| Skip layer 4 because it is hard | Layer 4 is where most useful findings live | Ask anyway; if unanswered, record it in metadata.skipped_layers with a reason |

| Edit the JSON by hand without reopening the conversation | Drift between model and reality | Re-interview, then update |

| Run the interview once and call the model done | Operating models drift | Re-validate quarterly; bump metadata.interview_date |

Verification Checklist

Before declaring an operating model complete:

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.