agentleFS
TokiDEVTokiDEV/team-skills/skills/team-ceo-view/SKILL.md

team-ceo-view

Skill1 starsChanged 2 months agoMITView on GitHub

Use when a team-* skill (team-refactor, team-council, team-council-plan, team-kickoff) reaches a CEO gate and the human must approve, decline, or choose between options. Also when the user asks for a visual, HTML, or browser view of a decision, backlog, or plan.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    No background commands, or the server can't start → open the .html itself (xdg-open on Linux, open on macOS) and wait for the human to …

    line 19
  2. Very specific:

    Only title and decisions (each with id and title) are required, plus outcome for plan and kickoff.

    line 139

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

team-ceo-view

Turns a CEO gate into a local HTML decision page. Under the summary, an Outcome block shows where the work lands: a mockup of the target screen, a diagram of the target system, or both, beside today's state. Every decision, tension and rejected idea is a card the human decides on. Each card carries its own evidence: arguments for and against, metrics, before/after code, figures and screenshots. A sidebar holds search, filters and an overview whose item chips jump to their cards. The human decides in the browser and sends the decisions back with one click.

Markdown stays the source of truth. Agents read and git diffs the .md record. The HTML is the human's view of the same gate, and never holds a decision the .md doesn't get.

Procedure

  1. Write the gate JSON to .council/gates/YYYY-MM-DD-<topic>.ceo.json (create the folder if absent), with source set to the record it belongs to. Contract below. Show the destination. Fill outcome (see Outcome below) before the cards: the human approves where the work lands, not a list of steps. Evidence goes on the item it supports. Arguments, metrics, code and figures belong to the decision, tension or rejected item they concern, never to a page-level section. Copy every screenshot an item relies on into .council/gates/YYYY-MM-DD-<topic>/: scratchpad and /tmp are wiped after the session.
  2. Check it: node <base directory>/render.js .council/gates/<file>.ceo.json, where <base directory> is the one shown when this skill loaded ("Base directory for this skill"), for a manual and a plugin install alike. It writes the .html and prints its path, or rejects invalid JSON with a list of errors. It also rejects any item whose text mentions a screenshot or "figure N" but carries no figures. Fix and re-run until it passes. Re-rendering after the JSON changes gives the human a fresh set of decisions, so stale choices don't carry over onto edited items.
  3. Serve it: run the same command with --serve, in the background (Bash run_in_background, timeout 7200000). It serves the page on 127.0.0.1 and opens it in the browser. When the human clicks Send to Claude, it saves the block to <gate>.decisions.txt, prints it, and exits, which re-invokes you with the block as its output. Tell the human the page is open, and that ? lists the keyboard shortcuts (←/→ between cards, Tab through options, Enter to choose). No background commands, or the server can't start → open the .html itself (xdg-open on Linux, open on macOS) and wait for the human to paste the block from Copy decisions.
  4. Read the block (the server's output, or the paste):
    CEO DECISIONS — <title>
    record: <path>
    S1 = approve
    F1 = keep | note: add a comment explaining why
    T1 = Minimalist
    UB-1a = revive
    S9 = UNDECIDED
    T* lines are tension verdicts (the side the human took, or defer). A rejected item comes back as keep-rejected or revive, and a revived one re-enters the calling skill's flow as a new candidate. Any UNDECIDED → ask about just those, in chat.
  5. Record the decisions (with notes) into the .md record, then continue the calling skill's flow.

The files stay local; nothing is uploaded. .council/gates/ can be committed or gitignored: the decisions live in the .md record, and the page regenerates from its JSON.

Who calls this

SkillGateMapping lives in
team-refactorRefactoring backlogits step 5
team-councilCouncil decisionits CEO gate section
team-council-planPlan approvalits step 5
team-kickoffProject brief (the single kickoff gate)its step 5

Each caller owns what goes on the page; this skill owns how it's rendered and returned.

Triage before you render

The page is for decisions, not an inventory. Before writing the JSON:

  • One question, one card. Settle every open question by Counting positions in team-protocol: a majority goes in decisions, no majority goes in tensions, never both. The count goes in the item's tags.
  • At most ~7 weighty decisions. These are what the human must actually weigh: anything touching money, contracts or users, and tensions. Routine items with a clear recommendation (backlog steps, plan steps) don't count toward the cap; Accept recommended handles them in one click.
  • Everything else is minor: true with a default. Edge-case quirks and cosmetic items fold into a collapsed block with their default already applied.
  • Order by stakes. The item the human explicitly asked about goes first.

Outcome

outcome is one entry per view the work changes. The renderer rejects a plan or kickoff page without it. Include it on a council page when the recommended direction changes a screen or the system's shape, and on a refactor page when module boundaries move.

viewUse it whenafter isbefore is
uia user sees something differenta wireframe of the target screen: real layout, real labels, sample data from the domaina screenshot of today's screen
systemcomponents, APIs, data flow, jobs or a workflow changethe target architecture (boxes = components, arrows = calls or data), or the target workflow as a sequencethe same diagram, today
  • after is required. before goes in whenever something exists today; a kickoff has none.
  • caption (required): one line naming what changed, e.g. "Discount line moves under the subtotal; nothing else moves".
  • In after, draw new parts solid and labelled new, and removed parts dashed. Keep both diagrams on the same layout, so the change is what the eye catches.
  • Both views when both change. A figure is { "svg" } or { "src" } (rules below). A .svg file given as src is inlined, so an agent can write the sketch to the gate folder and point to it.

Writing an item

Each field has one job, so no two say the same thing:

FieldIts jobShape
titleThe question (when options are custom) or the move (Approve/Decline)≤ 8 words
detailThe facts the title lacks: what is true today and what it costs≤ 3 bullets or one sentence; ≤ 240 characters
whyWhy a human must decide itOne line; ≤ 160 characters
optionsThe answers, each a different outcome≤ 5 words each

detail and why take an array of bullets, or a string whose - lines become bullets. Inline `code` and **bold** are rendered; put the key number in bold.

{ "id": "F1", "title": "Gold discount rounding",
  "detail": ["Gold floors the 10 % discount; other tiers round", "49.95 € order: **4.99 €** off instead of **5.00 €**"],
  "why": "Changes invoices customers already received.",
  "options": [ { "value": "keep", "label": "Keep floor + comment" }, { "value": "round", "label": "Round like other tiers" } ] }

The renderer rejects a detail or why over its length, a detail that opens with the title, an option label that repeats the title, and a detail that holds every word of an option label.

JSON contract

{
  "kind": "refactor | council | plan | kickoff",
  "title": "Refactoring backlog — src/invoice.js",
  "date": "2026-09-26",
  "source": ".council/refactors/2026-09-26-invoice.md",
  "summary": [
    { "label": "Verdict", "text": "One line: what is being decided and the overall call." },
    { "label": "Weak spots", "points": ["Three copies of the tax rule", "Dead exportCsv()"] },
    { "label": "Recommendation", "points": ["Approve S1–S4", "Fix F1 as its own fix: commit"] }
  ],
  "outcome": [
    { "view": "system", "title": "invoice.js after the steps", "caption": "Tier switch leaves as computeDiscount(); tax is one constant",
      "before": { "src": "2026-09-26-invoice/system-before.svg" }, "after": { "src": "2026-09-26-invoice/system-after.svg" } }
  ],
  "decisions": [
    {
      "id": "F1", "group": "Found, not fixed", "title": "Gold discount rounds down",
      "tags": ["money", "behavior change"],
      "detail": ["What is true today", "What it costs, with the number in **bold** (screenshot 3)"],
      "why": "Why it needs a human decision, one line.",
      "for": [ { "who": "Fowler", "point": "One rounding rule for every tier." } ],
      "against": [ { "who": "Minimalist", "point": "Changes invoices already sent; finance must sign off." } ],
      "metrics": [ { "label": "Tiers using floor", "before": 1, "after": 0, "better": "lower" } ],
      "code": { "before": "Math.floor(total * 0.1)", "after": "Math.round(total * 0.1)" },
      "figures": [ { "src": "2026-09-26-invoice/03-receipt.png", "caption": "Screenshot 3 — receipt shows 4.99 € discount" } ],
      "options": [
        { "value": "keep", "label": "Keep floor + comment", "recommended": true },
        { "value": "round", "label": "Round like other tiers" },
        { "value": "defer", "label": "Ask finance", "negative": true }
      ]
    },
    { "id": "S3", "group": "Backlog", "title": "Rename Variable: grand → total" },
    { "id": "F9", "title": "'Discount: -0.00' always printed", "minor": true, "default": "decline" }
  ],
  "tensions": [
    { "id": "T1", "topic": "Extract buildInvoice?", "sides": [
      { "who": "Uncle Bob + Ousterhout", "position": "Strongest case for…" },
      { "who": "Minimalist", "position": "Strongest case against…", "recommended": true } ] }
  ],
  "rejected": [ { "id": "JO-3", "title": "Per-type rule table", "reason": "One use; hides the floor quirk" } ],
  "figures": [ { "title": "Vote spread", "svg": "<svg viewBox='0 0 800 160'>…</svg>" } ]
}

Field rules:

  • Only title and decisions (each with id and title) are required, plus outcome for plan and kickoff. Ids are unique across decisions, tensions and rejected items.
  • summary is a list of bullets, never a paragraph. Each bullet is a string or a { "label", "text" } / { "label", "points": [...] } object. Aim for 3–5 labelled bullets, and end with the recommendation. The renderer rejects a string summary.
  • Every item (decision, tension, rejected) accepts detail, why, tags, for, against, metrics, code, figures, options and default.
  • for / against: the arguments, each attributed to the role that made it, as { "who", "point" }, one concrete sentence each. Give every weighty item both columns. An empty against shows as "No argument raised", which is itself information. Only use arguments the panel actually made.
  • options defaults to Approve/Decline. Set "recommended": "decline" on the decision to recommend declining.
  • Tensions hold only questions with no majority (see Triage). They get their id from their position (T1, T2…) unless you set id. Their default options are "Side with <who>" for each side, plus Defer. Mark the recommended side with "recommended": true on that side.
  • Rejected items default to Keep rejected (pre-applied) or Revive, and reason is shown on the card.
  • metrics show as before→after chips on their card. better (higher or lower) colors the change green or red. Page-level metrics are rejected by the renderer.
  • code is shown as before/after panes. Include it for every step that moves code, and keep each pane to about 15 lines.
  • figures entries take either svg or src:
    • src points to an image such as a screenshot. It must be relative to the JSON file; absolute, /tmp and URL paths are rejected. The renderer embeds the image, so the .html stays one file. A click opens it full size. The caption says what to look at, e.g. "knob 17.6 kHz, graph still at 1 kHz". (images is accepted as an old name for figures.)
    • svg is trusted inline SVG. The page is dark: use currentColor for strokes and text, and no light fills. Make the viewBox about 700–900 units wide with font-size 12–13, so the text renders at reading size; a narrower viewBox gets scaled up.
  • A figure shows what the human decides on: the result (outcome), or evidence for one item (a screenshot, a before/after of one module, a vote spread). The order the work runs in is the executor's concern, so a step dependency graph or a timeline has no place on the page.
  • Page-level figures are only for evidence that spans many items (it shows under the outcome). Anything about one item goes on that item.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.