agentshekel/agentic-workflow/engagement-protocol

Claude Code and agent skill by agentshekel/agentic-workflow

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

[PROTOCOL] Canonical contract for agency engagement lifecycle: artefact schemas, state files, iteration budget, escalation rules, cross-domain handoff, observability. Single source of truth referenced by agency-intake, leads, managers, directors, and pipeline skills. Pure reference — no triggers, not invoked by the secretary as a router target.

Install

npx vskill@latest install agentshekel/agentic-workflow/engagement-protocol

SKILL.md

The same SKILL.md was published earlier as agentshekel/agentic-workflow/engagement-protocol.

engagement-protocol

This is the shared contract every agency role follows. The secretary captures intake, the lead orchestrates, the manager accepts. All of them read from and write to the artefacts defined here.

Naming note (2026-05-28 refactor): the per-engagement acceptor role is the *-manager agent. Throughout this document, legacy mentions of "director" / "the director" denote that manager/acceptor role — read them as "manager". The *-director agents are now a separate role — system-optimizers that improve the skill/agent corpus (see system-optimization-protocol); they never accept engagements. Script names (e.g. director-verdict-check.py) and the acceptance-log.md owner column are unchanged.
Workflow-migration note (2026-06-05): engagement DISPATCH is now the engagement-workflow Workflow, not Task-tool routing. The *-lead is a planning agent (lead:plan) that returns a plan (tier / specialists / waves / tasks / validators); the Workflow SCRIPT then fans out specialists by task.owner in waves, consolidates each wave, runs validators, assembles the handoff, and stops at the human-gate seam. There is no mid-lead routing layer — the 8 *-engineering/product/quality/brand/product-design/traffic/analytics/content-lead agents were retired (archived under _archive/agents/). Legacy mentions of "mid-lead", "top-lead → mid-lead → specialists", or "dispatch via the Task tool" below describe the retired topology; read them as the Workflow's wave dispatch — waves replace the mid-lead coordination layer (see §"Specialist dispatch — the workflow wave model" and §"Criteria propagation — workflow dispatch"). The human-gate (consilium → human directive → *-manager acceptance) is UNCHANGED.

Engagement = a directory

Every agency engagement lives in an engagement/ directory under the project working directory. Files in this directory are the engagement's state. Nothing about the engagement is conversational — if it matters, it's in a file.

Whitelist (allowed paths only)

The list below is closed. No files outside it may be created inside engagement/. Existing files outside this list are a protocol violation and the director MUST treat them as red flag (likely phantom-claims hideout).

engagement/
├── criteria.md # secretary, semi-immutable (additions/removals locked; rephrasing allowed via lead/secretary, see "Mutability rules")
├── scope-sync.md # director, optional, append-only after create
├── plan.md # lead, mutable until first dispatch, then frozen
├── specs/ # dev only — SDD feature folder (feature_path for spec agents): user-spec.md / tech-spec.md / research-verdict.md / code-research.md / project-brief.md (bootstrap) / logs/{userspec,techspec,research}/
├── tasks/*.md # ALL domains — atomic task files (mandatory L; recommended M with ≥2 specialists; skip S)
├── tasks/INDEX.md # optional manifest; mandatory if size: L
├── brand/ # design only — voice / tokens / guidelines
├── design-system/ # design only — components / tokens
├── ui/ # design only — screens / flows
├── executor-reports/ # specialists, one file per specialist, append-only
│ └── {specialist}.md
├── code-research.md # OPTIONAL — code-researcher output (existing dev projects, before tech-spec)
├── design-research.md # OPTIONAL — design-system-researcher output (existing design system, before UI/UX work)
├── brand-research.md # OPTIONAL — brand-context-researcher output (existing brand history, before brand/marketing work)
├── validation-log.md # lead, append-only — every validator run
├── validation-outputs/ # MANDATORY — JSON proof-of-run for each validator AND adversary role (incl. preliminary)
│ └── {validator|adversary-role}-iter-{N}[-preliminary]-{timestamp}.json
├── consilium-summary.md # auto-written by consilium-synth.py (M/L only); aggregates adversary findings
├── human-directive.md # MANDATORY on M/L between consilium and director verdict; human as supreme judge
├── codex-outputs/ # OPTIONAL — assets generated by Codex via mcp__codex__codex tool calls
│ └── {NN}-{slug}.{png|svg|jpg}
├── iteration # plain-text counter file (lead inc on handoff, director inc on reject)
├── screens/ # MANDATORY for ux_heavy=true — Playwright captures
│ └── {iteration}/{theme}/ # e.g. iter-1/dark/dashboard.png
├── traces/ # MANDATORY for ux_heavy=true — exercised flow logs (+ ux-review drive-mode evidence)
│ └── {iteration}/{flow}.json # producer flow traces; ALSO {iteration}/ux-review-{flow}.json (ux-review-authored in drive mode — S1)
├── deploy-log.md # dev only when deploy boundary crossed
├── docs-diff.md # docs pipeline only
├── handoff.md # lead, REPLACED per iteration
├── acceptance-log.md # director, append-only
├── engagement-reflections.md # manager, append-only on M/L verdict — ≤3 actionable lessons targeting skill/agent rules (see acceptance-protocol §"Per-engagement reflection")
└── events.jsonl # append-only event ledger — lifecycle facts emitted by lib/ledger.py: phase transitions, validator runs, interrupts, verdicts, reflections, replan (S3 replan hatch). Schema in scripts/lib/ledger.py. Forward-only; pre-ledger engagements get a synthetic legacy_import event at first write.

Per-task contract (S2 — gated `A.contracts`, M/L only): tasks/{id}.md MAY additionally carry a ## Contract (co-signed) section (the per-task acceptance contract). On M/L the engine MAY create a contract-only tasks/{id}.md even when decompose=false — it is a whitelisted path, not a new artefact type, so this is not a whitelist violation. S-tier never creates contracts. Full schema below (§"tasks/{id}.md → ## Contract (co-signed)").

Forbidden (do NOT create)

These names appear in past engagements as "supporting docs". They duplicate whitelist content, hide phantom claims, and bloat the bookkeeping. Forbidden:

  • preview.md, compliance.md, review-log.md, visual-review.md, summary.md, notes.md, report.md, tldr.md
  • rework-N-brief.md, iter-N-summary.md, wave-N-recap.md, anything resembling a per-iteration sidecar
  • findings.md, issues.md, audit.md outside validation-log.md

If you feel pressure to create one of these — the content already belongs in an existing whitelist file:

  • "compliance" / "audit" / "review" → validation-log.md
  • "preview" / "summary" / "report" → handoff.md (it IS the summary)
  • "rework brief" → new ## Iteration N section inside validation-log.md and rewritten handoff.md
  • "exercised flow" / "smoke run" → traces/ directory + reference inside handoff.md §"Exercised"

Director's red-flag scan (per iteration): ls engagement/ — any file outside whitelist = REJECT with reason "out-of-whitelist artefact, content must move into canonical file".

Artefact schemas

criteria.md mutability rules (resolves the "immutable vs lead-sharpening" tension)

criteria.md is semi-immutable:

ActionAllowed byWhenAudit
Adding a new "Done when" / "Deliverables" bulletuser onlyscope-sync with directordirector records in scope-sync.md
Removing a bullet that has independent user valueuser onlyscope-sync with directordirector records in scope-sync.md
Changing measurement bar (e.g. "tests green" → "tests + 90% coverage")user onlyscope-sync with directordirector records in scope-sync.md
Rephrasing for clarity (no scope change)lead OR secretary autonomouslyPhase 1a sharpening, or loop-to-intakescope-sync.md auto-edit log
Dropping no-value filler (would-always-be-zero metric, never-read deliverable)lead OR secretary autonomouslyPhase 1a sharpeningscope-sync.md auto-edit log
Splitting compound bullet into atomslead OR secretary autonomouslyPhase 1a sharpeningscope-sync.md auto-edit log
Frontmatter `size`/`ux_heavy` promotion (S→M, false→minor→true)leadmid-engagement when scope growsscope-sync.md note
Frontmatter demotionNEVER (would discard accumulated rigour)——

The directive resolves the apparent contradiction: criteria are immutable to scope, mutable for clarity. Lead does not need user touch to drop a "ошибки за период (always 0)" filler — that's not scope reduction, that's noise removal. Lead does need user touch to drop "тесты после миграции" — that has independent value.

criteria.md (secretary)
markdown
---
engagement: {engagement-name}
created: {YYYY-MM-DD}
domain: marketing | dev | design
size: S | M | L # see Engagement size tier
ux_heavy: false | minor | true # see UX-heavy engagements
tools_required: [docker, playwright, postgres, ...] # see Pre-flight check
# sdd: bootstrap | spec | impl | off # OPTIONAL, dev only — see "SDD engagements" below
# spec_from: engagement-archived/{date}-{name}-spec/primary # REQUIRED when sdd: impl — the archive leaf holding the approved specs (primary-2, … on collision)
# protocol_version: 4 # OPTIONAL — kept for future migration story; not required today
---
# Acceptance criteria — {engagement-name} — {YYYY-MM-DD}
## Scope
{one paragraph, verbatim-aligned with user brief}
## Deliverables expected
-{deliverable 1 with measurable bar}
-{deliverable 2 with measurable bar}
## Done when
-{observable condition 1}
-{observable condition 2}
## Explicitly out of scope
-{thing excluded with one-line justification}
## Review mode
`lean` | `full` | `solo`
## Iteration budget
Guidance: 2 rework cycles, then user escalation. Counter is informational — escalate immediately on repeating critique. Hard cap 4.
## Cross-domain dependency (optional)
-Primary domain: {marketing | dev | design}
-Secondary domain: {marketing | dev | design} — invoked at phase {N} by primary lead
SDD engagements (dev, sdd: frontmatter)

Spec-driven development runs an M/L dev feature or refactor as two engagements; a new project first runs a bootstrap engagement, then its features take the same two (rationale: dev-methodology §"Spec-Driven Development"; conducting: agency-intake step 5c):

sdd:InputOutputApproval
(phase 0, no engagement run; new project only)project interview in intake (project-planning Part A)specs/project-brief.md, status: approvedthe user, in chat
bootstrapapproved project briefPK docs + CLAUDE.md (project-planning Part B, dev-product-analyst), then infrastructure (dev-devops-engineer); code mode, no feature codethe tier's normal acceptance
(phase 1, no engagement run)user interview in intakespecs/user-spec.md, AC ids AC-N, status: approvedthe user, in chat
specapproved user-specspecs/tech-spec.md, status: draft; artefact mode, one task owned by dev-tech-architectthe tier's normal acceptance; human directive PROCEED + dev-manager ACCEPT
implapproved user-spec + tech-spec (status: approved, approved_by set by intake)code; tasks map one to one from tech-spec Implementation Tasks; Done-when bullets read crit-N (AC-k) / crit-N (TC-k)the tier's normal acceptance
off—ordinary engagement; the user's reason for skipping specs is under Scope—

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
4
7-day trend score
8

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/agentshekel/agentic-workflow/engagement-protocol/badge)](https://verified-skill.com/skills/agentshekel/agentic-workflow/engagement-protocol)

Something wrong with this skill or its page? Tell us.