No slash command · from Chief OS
Builds a 30-day engineering allocation report as HTML showing plan vs actual FTE and AI lift by initiative. Useful for understanding where engineering time went and AI productivity impact.
Ships in Chief OS. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
This skill produces ~/Downloads/eng-allocation-<START>-to-<END>.html, an interactive page for one 30-day window. It shows where each engineer's time went by plan initiative, plan against actual FTE, AI lift (merged-PR output per FTE against a baseline period before the team adopted AI coding tools), Claude spend per initiative, headcount per customer, a weekly mix, and a drill-down into the PRs and Jira tickets behind every project.
Everything here is local. Nothing gets posted to Slack, a docs tool or anywhere else, and if the user wants to share the page, that is a separate, confirmed step.
The scripts read config from the data directory ~/.claude/chief-os/eng-allocation/ (set ENG_ALLOC_DIR to use another path). Each config file falls back to the bundled example in this skill's config/ folder, so the skill runs against sample values until the user supplies their own.
mkdir -p ~/.claude/chief-os/eng-allocation/config && cp $SK/config/*.json ~/.claude/chief-os/eng-allocation/config/.org.json with the GitHub org list, the Jira site URL and project keys, the Jira customer field id (or null), the baseline months, the agent-PR settings and the usage sheet id (or null).roster.json with every engineer's GitHub login and Jira display name. Ask the user for names rather than inferring them from a login.plan.json with the current resourcing plan, then write rules.json so each initiative has rules that catch its repos, epics and title keywords.build.py uses baseline.fallback_rate and says so.| Path | What it holds |
|---|---|
config/org.json | GitHub orgs, Jira site and projects, customer field and customer epic pattern, baseline window, AI rollout band, agent-PR bot and requester regexes, optional usage sheet id, internal account names left out of customer lists |
config/roster.json | GitHub login and Jira name to reporting row, group weights, planned and outside rows, agent requester map, usage-sheet name aliases, chart colors, baseline author list and suffix |
config/plan.json | Initiatives with id, name, theme and planned FTE, the theme list with colors, the customer theme, per-person plan labels and the plan source |
config/rules.json | Ordered classifier rules, the default initiative for PRs and for Jira, and the regex for mechanical release PRs |
scripts/ | pull_prs.sh, agent_prs.sh, jira_extract.py, usage.py, build.py, render.py, check.mjs |
templates/report.html | The page, with {{PLACEHOLDERS}} for text and __D__ / __DD__ for data |
The data directory also holds data/monthly_series.json (merged PRs and active engineers per complete month, which grows each run), data/months/ (raw monthly PR pulls), and runs/<START>_<END>/ (each run's working files).
rules.json holds an ordered list of rules, and the first rule whose conditions all match decides the initiative. Each rule names an initiative id, an applies_to of pr, jira or both, and a match object over fields. PR fields are title, repo, author and org. Jira fields are summary, parent_key, parent_summary, project, assignee and customers, and in a both rule title and summary mean the same text. A condition is {"regex": "..."} (case-insensitive), {"in": [...]} or {"present": true}. Items no rule catches go to default_initiative.
Windows are 30 days inclusive (END = START + 29 days).
$DATA/runs/ has earlier runs, the next window starts the day after the latest run's END, so periods stay back-to-back. Use it only if that window ended before today.State the window and how it was chosen in one line before pulling. Set SK to this skill's folder, DATA=${ENG_ALLOC_DIR:-~/.claude/chief-os/eng-allocation} and RUN=$DATA/runs/<START>_<END>, then mkdir -p "$RUN/jira".
plan.json as_of, or read the plan document if they keep one in a connected docs tool. If it changed, show the initiative and FTE differences and ask before editing plan.json. Keep initiative ids stable because rules.json points at them, and add rules for any new initiative.These can run in parallel.
zsh $SK/scripts/pull_prs.sh START END $RUN/prs.ndjson. It reads the orgs from org.json and stops with an error if a 7-day chunk exceeds GitHub's 1,000-result search cap, and that chunk should be split rather than accepted truncated. The script uses BSD date -j -v, which ships with macOS; on Linux, swap in GNU date -d.zsh $SK/scripts/agent_prs.sh $RUN/prs.ndjson $RUN/agent.tsv. It reads each bot PR body with agent_prs.requester_regex so the PR is credited to the engineer who asked for it, and it exits cleanly when agent_prs is not configured.searchJiraIssuesUsingJql (Jira MCP). Load it with ToolSearch({ query: "+atlassian searchJiraIssuesUsingJql" }), and get the cloudId from getAccessibleAtlassianResources (Jira MCP). Run two queries, each paged with maxResults: 100 and nextPageToken, with <PROJECTS> taken from org.json jira.projects:
resolved >= "START" AND resolved <= "END 23:59" AND assignee is not EMPTY AND project in (<PROJECTS>) ORDER BY key ASCstatusCategory = "In Progress" AND updated >= "START" AND assignee is not EMPTY AND project in (<PROJECTS>) ORDER BY key ASC["summary","status","issuetype","assignee","project","parent","labels","components","resolutiondate","created","updated"] plus the jira.customer_field id when one is set, with responseContentFormat: "markdown".python3 -I $SK/scripts/jira_extract.py <that file> resolved|in_progress $RUN on it, which prints the next page token. When a page comes back inline, write it to $RUN/jira/raw_<set>_<n>.json and run the extractor on that file.python3 -I $SK/scripts/usage.py START END $RUN. It needs usage.sheet_id in org.json and the gws CLI, and the expected sheet layout is in the script's docstring. With no sheet configured it prints a skip line, and the page leaves out the Claude usage and spend figures.build.py prints MISSING MONTHS when a complete month since baseline.start is not cached. Pull each with zsh $SK/scripts/pull_prs.sh YYYY-MM-01 YYYY-MM-<last> $DATA/data/months/YYYY-MM.ndjson, then rerun the build.python3 -I $SK/scripts/build.py START END $RUN
It prints which config file it read for each of the four, then headcount, output in engineer-months, the multiple, each initiative's plan, actual and output, customer coverage, and two drift lists. Read $RUN/stats.json for the numbers behind the narrative. A line starting BASELINE uses fallback_rate means the AI lift is not yet measured against real baseline months, which belongs in the caveats.
build.py prints GitHub authors and Jira assignees who are not in the roster. Non-engineers are expected there and stay out. When an engineer appears (a new hire, a new contractor), ask the user for their name, whether they belong in planned or outside, and at what weight, then update roster.json and rebuild. Never guess a name from a login.
Then open $RUN/data.json and look at what landed in each default initiative. When a recognizable stream of work landed there, propose a rule for rules.json, show it to the user, and rebuild once they agree.
Write $RUN/narrative.json:
{
"headline": "We generated about N engineer-months of output with H engineering headcount this month, Mx per head when measured against our baseline output per engineer.",
"plan_findings": ["one sentence per initiative that moved most against plan", "..."],
"project_findings": ["who carried which project", "..."],
"extra_methods": [],
"est": {}
}
<, > or & that comes from a ticket or PR title.plan_findings holds three to four bullets about projects only, covering the biggest under- and over-allocations and unplanned work, each anchored on FTE against plan and the people or epic that drove it. Write plain text with no HTML; render.py escapes the narrative and turns every ticket key such as ABC-123 into a link to jira.site.project_findings holds two to four bullets on who staffed which project, such as concentration on one person, the widest spreads, or a planned person who did not show up on their project.est is optional. {"Name": [low, high]} draws an estimated output range for someone counted at 1x because they merged too few PRs, and it needs a method stated in extra_methods.python3 -I $SK/scripts/render.py $RUN ~/Downloads/eng-allocation-START-to-END.html
node $SK/scripts/check.mjs ~/Downloads/eng-allocation-START-to-END.html
open ~/Downloads/eng-allocation-START-to-END.html
render.py fails if any {{PLACEHOLDER}} or __D__ marker is left unfilled. The check.mjs step is optional and needs Node 22 or later and Google Chrome at its macOS install path. It loads the page in headless Chrome, fails on any JS error, an empty chart or an unfilled placeholder, hovers one project segment, and saves <report>-check.png. When it runs, look at the screenshot before opening the page for the user.
Tell the user the window, the headline numbers (headcount, engineer-months, multiple, customer coverage), the largest plan gaps, anything that changed in the roster, plan or rules, and any data caveat, such as a missing usage week, a Jira count mismatch, a month missing from the trend, or a fallback baseline. Give the file path.
rules.json.jira.customer_epic_regex, and a PR only through a ticket key in its title. Names merge only on an exact match, so "Acme" and "Acme Health" stay separate.config/org.json (opens in a new tab)config/plan.json (opens in a new tab)config/roster.json (opens in a new tab)config/rules.json (opens in a new tab)scripts/agent_prs.sh (opens in a new tab)scripts/build.py (opens in a new tab)scripts/check.mjs (opens in a new tab)scripts/jira_extract.py (opens in a new tab)scripts/pull_prs.sh (opens in a new tab)scripts/render.py (opens in a new tab)scripts/usage.py (opens in a new tab)templates/report.html (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
engineering-allocation, fte-report, ai-lift, capacity-planning
npx claudepluginhub adamfarren/chief-os --plugin chief-os32 skills in this plugin
/1-1Prep for a 1-1 with your manager (PPP format) or a direct report (impact, talking points, blockers), detected from the org roster and calendar. Use for "prep my 1-1 with [name]" or a meeting time./captableModel cap table dilution for a new round, convertible note or SAFE conversion, venture debt warrants, or a pool top-up. Use for "run a scenario", "what if we raise", "dilution", "what does this do to [holder]", or quantifying a term sheet./chiefChief of Staff router that sends a request to the right chief-* skill. Use for any CEO-level request when unsure which skill fits, including investor, board, memo, deal, LinkedIn, support, event, and brand work.Other plugins' skills for the same job