company-os
Skill2 starsChanged 3 months agoMITView on GitHub
Build and operate a Company OS — a file-based control plane where a team of AI agents runs a company's operations from one shared context (mission, rules, roster, bus, claims and decisions registries, tiered autonomy, scheduled loops). Setup takes ONE question about the company. Then day-to-day operation: run an agent, run the standup, add an agent, promote knowledge, install the schedule, diagnose a stale loop. Triggers: "set up my company OS", "company os", "build my company OS", "add an agent to my company OS", "run the standup", "install the company OS schedule", "my agents are stale", "promote this to trusted".
- Reads credentials
4 other projects use a version of this.
Adopted by
Most recently taken up by
- darkweb19/skillstheir own version, first seen Nov 8, 2026
- Hassaan146/claude-skillstheir own version, first seen Jul 25, 2026
- mahiunfiltered/claude-code-skillstheir own version, first seen Jul 8, 2026
- Hussain-Elfalah/Agentic-Skillstheir own version, first seen Jun 4, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- Hassaan146/claude-skills★ 18same name
- Hussain-Elfalah/Agentic-Skills★ 2same name
- mahiunfiltered/claude-code-skills★ 1same name
- darkweb19/skills★ 0same 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 repository2 other files it gives its agents.
- template/AGENTS.mdAGENTS.md
- template/CLAUDE.mdCLAUDE.md
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. 0 are common, 6 are distinctive, and 7 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 33
Never build the OS inside the template repo itself.
- Distinctive: line 45
Ask exactly this, in the user's language, then wait:
- Distinctive: line 53
Add one line: *"You can also drop me files or links (a pitch deck, a README, a Notion export, your website) and I'll read them first."* If …
- Very specific: line 95
If the target folder is empty: bash install.sh <target> --slug <company-slug> from the template repo, then cd <target>.
- Very specific: line 97
Write the files above. Keep every file under 200 lines.
- Very specific: line 101
Commit: bash scripts/sync.sh "company-os: initial setup" (commits locally.
- Distinctive: line 105
Run
- Distinctive: line 115
Every agent has a role sheet that says what it never does, not only what it does.
- Distinctive: line 118
Not a single secret, email, phone number or customer name in a tracked file.
- Very specific: line 136
When you operate inside an OS, you are bound by its RULES.md like any agent: read bus/DECISIONS.md first, claim before substantial work, …
- Distinctive: line 141
No secrets in chat, in files, in logs.
- Very specific: line 142
No invented facts. TODO: beats a plausible guess.
- Very specific: line 143
No application code in the OS.
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Company OS — the skill
You are about to build, or operate, a Company OS: one folder that holds what a company is, who decides what, and how work moves between a team of AI agents. Read this whole file before acting. Speak to the user in the language they use with you; write the company's files in that language too. The template's structural files stay in English.
0. Where am I?
Decide the mode from the filesystem, not from the user's words:
| You find | Mode |
template/ next to this SKILL.md and no COMPANY.md here | SETUP — this is the template repo. Build a new OS in its own folder. |
COMPANY.md, RULES.md, agents/TEAM.md in the current folder (or a parent) | OPERATE — you are inside an installed OS. Go to §3. |
| Neither | Ask for the path of the OS, or offer to run SETUP. |
Never build the OS inside the template repo itself. Never write application code into an OS
(ENVIRONMENT.md E1). Never ask for a secret in the conversation: credentials go in the OS's
.env, typed by the user, and nowhere else.
1. SETUP — one question, then build
1.1 Preflight (silent unless something is missing)
bash,git,python3present;claudeorcodexon the PATH.- Target folder: default
~/company-os; if the user names the company, propose~/<company-slug>-os. If the folder exists and is not empty, ask before touching it.
1.2 The one question
Ask exactly this, in the user's language, then wait:
Brief me on your company the way you'd brief a new chief of staff on their first morning. What you sell and to whom, how the money comes in, who is on the team and who does what, which tools hold the truth (CRM, payments, helpdesk, repo, spreadsheets…), what eats your time every week, which numbers you look at, what's on fire right now — and the short list of things you would never let anyone decide without you.
Add one line: "You can also drop me files or links (a pitch deck, a README, a Notion export, your website) and I'll read them first." If sources are given, read them before parsing the answer. If the user is in a hurry, accept a three-line answer — the OS starts small and grows.
Do not ask a second question unless a gap makes the OS unsafe (no idea what money flows
exist, or no "never without me" list). One short follow-up maximum. Everything else becomes
a TODO in COMPANY.md. Never invent a fact about the company.
1.3 Derive the OS from the answer
Work it out before writing anything, then show a ten-line summary and ask for a GO:
COMPANY.md— fill every section of the template from the brief: identity, offer, customers, revenue model, team & roles, systems of record, the founder's time sinks, the numbers that matter, current priorities, and the "never without me" list. Unknown =TODO:line, kept visible.MISSION.md— the why in the founder's words (quote them), the conviction, what it implies for every agent's decisions. Short. No corporate filler.- Roster — the five core agents always; add
qualityandreviewerif any agent output reaches a customer; then the business-type additions fromdocs/AGENTS-CATALOG.md(agency → delivery/account; SaaS → bugwatch/product; e-commerce → fulfillment/merchandising; local → bookings/reputation; media → content/community; solo → start with three). Create each extra agent withbash scripts/new-agent.sh <slug> "<role>", then rewrite itsAGENTS.mdfrom the catalog's role sheet, adapted to this company. agents/TEAM.md— the roster table with the one-line role and "when to consult" for each agent, in this company's vocabulary.RULES.mdR2 — the permissions table: for each agent, what it may read/write/do and what is forbidden. Every "never without me" item becomes a forbidden cell somewhere.policies/autonomy.md— the mapping table: which actions of this company are T1 / T2 / T3. Money, legal, customer-facing sends, deletions, deployments, pricing → T3 unless the founder explicitly whitelisted them in the brief.connectors/README.md— one row per system of record named in the brief: what it holds, which agent reads it, read-only or not, the env variable name it will need (name only — never the value).knowledge/KNOWLEDGE-MAP.md— pointers to where the truth lives (the systems above, the docs/links provided,COMPANY.md). Pointers, not copies.schedule/jobs.conf— a sober first cadence: chief-of-staff standup daily, ops daily, support every 30–60 min if there is a helpdesk, growth/finance daily or weekly, heartbeat and sync every 30 min. Fewer loops beat more loops at the start..env— copy of.env.examplewith the variable names the connectors need, values empty. Tell the user which ones to fill, and that the file is gitignored.
1.4 Write it
- If the target folder is empty:
bash install.sh <target> --slug <company-slug>from the template repo, thencd <target>. - Write the files above. Keep every file under 200 lines. Keep the
<!-- roster:end -->and other markers intact — scripts depend on them. bash scripts/doctor.shmust be green except for connectors not yet filled.bash tests/smoke.shmust pass.- Commit:
bash scripts/sync.sh "company-os: initial setup"(commits locally; pushes only if a remote exists — tell the user how to add a private remote).
1.5 First day
Run bash scripts/run-agent.sh chief-of-staff --task "FIRST DAY: read everything, write
reports/daily/<today>/chief-of-staff.md with (1) what you understood of the company in ten
lines, (2) what each agent will do this week, (3) the TODOs in COMPANY.md you need answered,
(4) the decisions that already wait for the founder. Log your run."
Show the report to the user. Fix what they correct. Then offer the schedule:
bash scripts/schedule.sh install (explain that unattended runs need
COMPANY_OS_BYPASS_PERMISSIONS=1 in .env, and what that means).
2. What a good OS looks like when you're done
- The founder can read
MISSION.md+COMPANY.mdin five minutes and recognise their company. - Every agent has a role sheet that says what it never does, not only what it does.
bus/DECISIONS.mdalready lists the "never without me" items as the standing T3 rules.bus/claims.mdis empty.logs/has one line: the first-day run.- Not a single secret, email, phone number or customer name in a tracked file.
3. OPERATE — day-to-day commands
| Need | Do |
| Run one agent | bash scripts/run-agent.sh <agent> [--task "…"] [--engine claude|codex] |
| Standup + digest | bash scripts/standup.sh |
| Give the chief of staff an order | write bus/inbox/chief-of-staff/<ts>-founder-<subject>.md, then bash scripts/notify-agent.sh chief-of-staff |
| Ask an agent's opinion (no action) | bash scripts/consult.sh <agent> "<question + context>" |
| Record a decision the founder just took | bash scripts/decision.sh set "<subject>" "<decision>" DECIDED founder→<agent> |
| See what waits for the founder | bash scripts/decision.sh list (⏳ rows) |
| Add an agent | bash scripts/new-agent.sh <slug> "<role>", then edit its AGENTS.md, RULES.md R2, policies/autonomy.md, schedule/jobs.conf |
| Promote a draft to trusted | move the file knowledge/draft/… → knowledge/trusted/…, add front-matter owner + last-reviewed, commit. Only the founder does this. |
| Install / list / remove the schedule | bash scripts/schedule.sh install | list | uninstall |
| A loop looks dead | bash scripts/heartbeat.sh then read logs/schedule/heartbeat.log; see docs/TROUBLESHOOTING.md |
| Sync between machines | bash scripts/sync.sh "<message>" — never git pull --rebase in an OS |
When you operate inside an OS, you are bound by its RULES.md like any agent: read
bus/DECISIONS.md first, claim before substantial work, log at the end.
4. Hard limits for you, the setup agent
- One question. One optional follow-up. Then build.
- No secrets in chat, in files, in logs. Variable names only.
- No invented facts.
TODO:beats a plausible guess. - No application code in the OS. If the company has a codebase, the OS points to it
(
ENVIRONMENT.mdE2) and agents work there in isolated branches. - The founder decides what is T3. You propose; you never widen autonomy on your own.
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.

