agentleFS
iamgiolagaiamgiolaga/ceo-of-agents/skills/portfolio-brief/SKILL.md

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

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    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.

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
  1. Very specific:

    Read org.yaml. If org.level is not holding, stop and say that this skill only runs in a holding hq.

    line 14
  2. Very specific:

    Run one git command per Bash call, as git -C <absolute path> <subcommand>.

    line 20
  3. Very specific:

    Read portfolio.yaml (schema portfolio/1: stale_after_days, orgs with id, name, path, remote.

    line 26
  4. Very specific:

    Default branch: git -C <path> symbolic-ref --short refs/remotes/origin/HEAD (gives origin/<default>).

    line 30
  5. Very specific:

    If org.status is closed (absent means open), the org is frozen: its Organizations line reads ID name: closed, last_updated ...

    line 32
  6. Very specific:

    Read the holding's own company/state.md (Waiting on the CEO and Open decisions).

    line 41
  7. Distinctive:

    every org's "Waiting on the CEO" items.

    line 45
  8. Very specific:

    every org's "Open decisions" line carrying [escalate: holding] (if it is already in Waiting, list it once and mark it escalated).

    line 46
  9. Very specific:

    Write company/briefs/YYYY-MM-DD-portfolio.md in the holding (today's date), sections:

    line 49

≈ “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.

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

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-current and symbolic-ref. Read its state only with git show on 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.md of each company, plus the two keys org.purpose and org.status from its org.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 of org.yaml, nor its decisions, departments or inbox.
  • Run one git command per Bash call, as git -C <absolute path> <subcommand>. Do not use cd, shell variables, &&, ; or pipes: the allowed-tools patterns 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

  1. Read portfolio.yaml (schema portfolio/1: stale_after_days, orgs with id, name, path, remote; remote may be "" for a company with no remote). Expand ~ in paths. If orgs is empty, say so and still write a brief with the holding's own items.
  2. For each org, read it without touching its working tree (use ls to check the path exists; if it is missing, record path missing and go on):
    • git -C <path> fetch origin. If it fails (offline, no remote, never fetched), record fetch failed: <reason> and continue with the last fetched ref; if there is no remote-tracking ref at all, record never fetched.
    • Default branch: git -C <path> symbolic-ref --short refs/remotes/origin/HEAD (gives origin/<default>). If it fails, use origin/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 only org.purpose and org.status. If org.purpose is job or personal: skip the org entirely (do not read its state; no items, no risks). Its Organizations line is ID name: skipped (<purpose> hq, never part of a portfolio; remove it from portfolio.yaml), with <purpose> being job or personal, and a Notes line says the same. If org.yaml cannot be read or has no org.purpose (schema org/1), treat the org as company and go on. If org.status is closed (absent means open), the org is frozen: its Organizations line reads ID name: closed, last_updated ... (the closed mark 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, record state.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 with git -C <path> symbolic-ref --short HEAD (the checked-out branch; use main if that fails), then run git -C <path> show <default>:company/state.md. Record the read as read: local <default> (no remote, may include unpushed changes). This is the only wording for a local read. Still read-only: show never touches the working tree.
    • Clone checks, read-only: git -C <path> status --porcelain (any output means clone: dirty, else clean) and git -C <path> branch --show-current (record branch: <name> only when it differs from <default>). These are information only: the brief reads origin/<default> (or the local default branch in the no-remote fallback) anyway.
  3. 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: report unknown 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.
  4. Staleness: an org is stale if last_updated is older than stale_after_days days before today. Mark stale orgs clearly; their items stay in the list with the staleness shown.
  5. Read the holding's own company/state.md (Waiting on the CEO and Open decisions).
  6. 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 (oldest since first). 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, write no 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 with child of <parent code>: ; it keeps its parent's place in the order. A {wait} parent is a row whose Item starts with group: , and it is not counted as an item in the Headline.
  7. Write company/briefs/YYYY-MM-DD-portfolio.md in the holding (today's date), sections:
    • ## Headline: write it last, after the ## Pending list table 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 the skipped (<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 on origin/<default>.
    • ## Pending list: the composed list, table with exactly these columns: Code | Org | Urgency | Item | Since | Holding advice. Holding advice is filled only for items marked [escalate: holding] (the holding CoS's advice on tax, personal legal or cash across orgs, or pending: <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."
  8. Get today's date with date +%F. Update the holding's company/state.md last_updated. The brief and this edit are an hq commit with gate "notice": write one line to the CEO and commit in the holding with docs: portfolio brief YYYY-MM-DD and the attribution lines required by the session. Never push unless the CEO asks.
  9. 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.

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.