portfolio-brief
Skill2 starsChanged 9 days agoMITView on GitHub
Holding-only, on-demand portfolio brief. Fetches each registered company hq read-only (no change to its working tree), reads its company/state.md from the fetched default branch, composes one pending list across the holding and all companies (urgency, then level, then age), and writes company/briefs/YYYY-MM-DD-portfolio.md. Use when the CEO asks for a portfolio brief or a view across orgs. Refuses to run in a company hq. Skips job hqs (org.purpose job) without reading their state.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- Mihir-Bhargav/Avanza-AI-trading-terminaltheir own version, first seen Nov 8, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- Mihir-Bhargav/Avanza-AI-trading-terminal★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository11 other files it gives its agents.
- close-orgSkill
- departmentsSkill
- draft-as-ceoSkill
- hq-versionSkill
- init-fleetSkill
- initiativesSkill
- intakeSkill
- product-reposSkill
- record-decisionSkill
- session-startSkill
- weekly-briefSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 1 is distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
Read org.yaml. If org.level is not holding, stop and say that this skill only runs in a holding hq.
- Very specific: line 20
Run one git command per Bash call, as git -C <absolute path> <subcommand>.
- Very specific: line 26
Read portfolio.yaml (schema portfolio/1: stale_after_days, orgs with id, name, path, remote.
- Very specific: line 30
Default branch: git -C <path> symbolic-ref --short refs/remotes/origin/HEAD (gives origin/<default>).
- Very specific: line 32
If org.status is closed (absent means open), the org is frozen: its Organizations line reads ID name: closed, last_updated ...
- Very specific: line 41
Read the holding's own company/state.md (Waiting on the CEO and Open decisions).
- Distinctive: line 45
every org's "Waiting on the CEO" items.
- Very specific: line 46
every org's "Open decisions" line carrying [escalate: holding] (if it is already in Waiting, list it once and mark it escalated).
- Very specific: line 49
Write company/briefs/YYYY-MM-DD-portfolio.md in the holding (today's date), sections:
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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.
Files
portfolio-brief (holding only)
Reply to the CEO in the chat language set in org.yaml (language.chat); write the brief in the file language (language.files).
Guard
Read org.yaml. If org.level is not holding, stop and say that this skill only runs in a holding hq. Do nothing else.
Hard rules
- The holding is a registry. Never write to a company hq. Never commit in a company hq. Never run any git command in a company hq that changes its working tree, its index, its branches or its commits. The only git commands allowed there are
fetch(it updates only remote-tracking refs, never the working tree),show,status,branch --show-currentandsymbolic-ref. Read its state only withgit showon the fetched ref (or on the local default branch when there is no remote). A dirty clone or a clone on another branch never blocks the brief and is never touched. - Read only
<path>/company/state.mdof each company, plus the two keysorg.purposeandorg.statusfrom itsorg.yaml(same ref): the first to skip job and personal hqs, the second to mark a closed org. Do not read or quote any other key oforg.yaml, nor its decisions, departments or inbox. - Run one git command per Bash call, as
git -C <absolute path> <subcommand>. Do not usecd, shell variables,&&,;or pipes: theallowed-toolspatterns match a single command, and a compound command is refused. - Store no credentials. Fetches use the CEO's own git credentials already on the machine.
- The pending list is a view. Items are answered and recorded in the owning org by its own chief of staff, never here.
Steps
- Read
portfolio.yaml(schemaportfolio/1:stale_after_days,orgswithid,name,path,remote;remotemay be""for a company with no remote). Expand~in paths. Iforgsis empty, say so and still write a brief with the holding's own items. - For each org, read it without touching its working tree (use
lsto check the path exists; if it is missing, recordpath missingand go on):git -C <path> fetch origin. If it fails (offline, no remote, never fetched), recordfetch failed: <reason>and continue with the last fetched ref; if there is no remote-tracking ref at all, recordnever fetched.- Default branch:
git -C <path> symbolic-ref --short refs/remotes/origin/HEAD(givesorigin/<default>). If it fails, useorigin/main. - Purpose check, before reading state (also in the no-remote fallback below, on the ref chosen there):
git -C <path> show <ref>:org.yaml, and read onlyorg.purposeandorg.status. Iforg.purposeisjoborpersonal: skip the org entirely (do not read its state; no items, no risks). Its Organizations line isID name: skipped (<purpose> hq, never part of a portfolio; remove it from portfolio.yaml), with<purpose>beingjoborpersonal, and a Notes line says the same. Iforg.yamlcannot be read or has noorg.purpose(schemaorg/1), treat the org ascompanyand go on. Iforg.statusisclosed(absent meansopen), the org is frozen: its Organizations line readsID name: closed, last_updated ...(theclosedmark right after the label), and leave its "Waiting on the CEO" items and escalated decisions out of the pending list, with a Notes line saying so. - State:
git -C <path> show origin/<default>:company/state.md. If it fails, recordstate.md missing. - No remote fallback: if there is no remote-tracking ref (the entry has
remote: "", the clone has no remote, or it was never fetched), read the local default branch instead. Find it withgit -C <path> symbolic-ref --short HEAD(the checked-out branch; usemainif that fails), then rungit -C <path> show <default>:company/state.md. Record the read asread: local <default> (no remote, may include unpushed changes). This is the only wording for a local read. Still read-only:shownever touches the working tree. - Clone checks, read-only:
git -C <path> status --porcelain(any output meansclone: dirty, elseclean) andgit -C <path> branch --show-current(recordbranch: <name>only when it differs from<default>). These are information only: the brief readsorigin/<default>(or the local default branch in the no-remote fallback) anyway.
- Validate each state file: the frontmatter must have
schema: state/1,org_id,level,last_updated,framework_version,next_action,next_decision, and the five H2 sections in order (see${CLAUDE_PLUGIN_ROOT}/schemas/state.md). An unknown schema version: reportunknown schema <value>for that org and do not guess its content; skip its items and say so. A known schema with problems: report the problem, use what parses. - Staleness: an org is stale if
last_updatedis older thanstale_after_daysdays before today. Mark stale orgs clearly; their items stay in the list with the staleness shown. - Read the holding's own
company/state.md(Waiting on the CEO and Open decisions). - Compose one pending list:
- the holding's own items in "Waiting on the CEO";
- every org's "Waiting on the CEO" items;
- every org's "Open decisions" line carrying
[escalate: holding](if it is already in Waiting, list it once and mark it escalated). Keep each code exactly as the owning org wrote it (ACME-D3,ACME-A2). Order by urgency (high, normal, low; items without urgency count as normal), then level (holding before company), then age (oldestsincefirst). For each escalated item, add the holding's advice next to the code: the holding's view across tax, personal legal and cash across orgs, drawn only from the holding's own departments and files; if there is nothing to add, writeno holding advice yet. Do not put sensitive holding detail into the brief lines that the CEO might copy into a company. A child item is its own row right after its parent's row, its Item starting withchild of <parent code>:; it keeps its parent's place in the order. A{wait}parent is a row whose Item starts withgroup:, and it is not counted as an item in the Headline.
- Write
company/briefs/YYYY-MM-DD-portfolio.mdin the holding (today's date), sections:## Headline: write it last, after the## Pending listtable is composed. Compute every count it states (total items, high-urgency items, items per org) from the rows of that final table, not from the source states or from memory. Re-count the rows and compare with the Headline numbers before writing the file; fix any mismatch.## Organizations: one status line per org (a skipped job or personal hq gets theskipped (<purpose> hq, never part of a portfolio; remove it from portfolio.yaml)variant instead):ID name: last_updated YYYY-MM-DD, stale: yes|no, fetch: ok|failed (<reason>)|never, clone: clean|dirty, schema: state/1, with, branch: <name>added only when the clone is on a branch other than the default. Add, read: local <default> (no remote, may include unpushed changes)when the local fallback was used; otherwise the state shown is the one onorigin/<default>.## Pending list: the composed list, table with exactly these columns:Code | Org | Urgency | Item | Since | Holding advice.Holding adviceis filled only for items marked[escalate: holding](the holding CoS's advice on tax, personal legal or cash across orgs, orpending: <what analysis is needed>); every other item has—there. The holding's own Waiting-on-the-CEO items are included (Org= the holding id).## Risks and key numbers by org: risks and key numbers from each state (with their source and date as written), one labelled subsection per registered org plus one for the holding itself (labelled as the holding).## Notes: fetch failures or never-fetched orgs (the state shown may be old), dirty clones, clones on a non-default branch (local changes are not in the brief), unknown schemas, stale orgs. Open the pending list with this statement: "This list is a view. Answer each item in its owning org; the owning chief of staff records it there."
- Get today's date with
date +%F. Update the holding'scompany/state.mdlast_updated. The brief and this edit are an hq commit with gate "notice": write one line to the CEO and commit in the holding withdocs: portfolio brief YYYY-MM-DDand the attribution lines required by the session. Never push unless the CEO asks. - Chat summary in the chat language, at most 10 lines: orgs read, stale or failed ones, the top pending codes in order, and a reminder that the CEO answers each in the owning org. Give the brief's path.
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
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.

