aos-project-init
Skill9 starsChanged 25 days agoApache-2.0View on GitHub
Interview a project folder into AOS: .aos/project.json, OpenWiki, memB memory, Synapse map, AGENTS.md. Use when onboarding a project to AOS.
- Reads credentials
In this repository275 other files it gives its agents.
- .agents/AGENTS.mdAGENTS.md
- AGENTS.mdAGENTS.md
- .agents/packs/eventtech/AGENTS.mdAGENTS.md
- .agents/packs/hardware/AGENTS.mdAGENTS.md
- .agents/packs/media/AGENTS.mdAGENTS.md
- skills/global_config/postgres-best-practices/AGENTS.mdAGENTS.md
- skills/global_config/react-best-practices/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- global-rulesCursor rule
- bdb-agentsCursor rule
- fabricCursor rule
- advisorSkill
- ao-orchestratorSkill
- bdb-eventagency-skillSkill
- bdbhtmlmanueldocsSkill
- bdbmediastormSkill
- bdb-shipping-skillSkill
- fabric-graphSkill
- fabric-loopSkill
- fabric-multigraphSkill
- fabricSkill
- fabric-swarmSkill
- fabric-teamworkSkill
- godmode-3d-creationSkill
- godmode-engineeringSkill
- godmode-eventtechSkill
- godmode-hardware-pcbSkill
- godmode-media-creationSkill
- godmode-shippingSkill
- godmode-ui-uxSkill
- instinct-exportSkill
- instinct-importSkill
- instinct-statusSkill
- master-sessionSkill
- skill-createSkill
- bdb-aosSkill
- bdbrainstormSkill
- codebase-memorySkill
- github-repoSkill
- agentic-harness-patternsSkill
- agent-manager-skillSkill
- agent-memory-mcpSkill
- agent-pipelineSkill
- agent-tool-builderSkill
- agenttrailSkill
- ai-agent-developmentSkill
- ai-productSkill
- aos-a2aSkill
- aos-gatewaySkill
- aos-setupSkill
- aos-storeSkill
- aos-updateSkill
- api-design-principlesSkill
- apify-lead-generationSkill
- apify-ultimate-scraperSkill
- api-patternsSkill
- archifySkill
- architect-reviewSkill
- ask-timSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 28
If it reports *unvollständig*, stop and run /aos-setup first.
- Distinctive: line 86
AGENTS.md: If missing, offer the template.
- Very specific: line 149
When the user chose to watch it, add the absolute path to projects in ~/.openwiki/projects.json — that file is the daemon's watch list.
- Distinctive: line 167
Never write credentials or high-entropy strings into memory.
- Very specific: line 173
When the project root sits outside every folder in aos memory list, ask once whether to add it to the daily memory import, and on yes run …
≈ “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
AOS Project Init — Per Workspace
/aos-setup prepares the machine. This prepares one folder in it — and unlike
the machine skill, this one writes. It asks what it cannot know, shows what
it intends to write, and writes it once you agree.
Everything it decides lands in .aos/project.json, so a second run knows what
was already settled and changes only what you ask it to.
1. Preconditions
aos-config show # is this machine's vocabulary present?If it reports unvollständig, stop and run /aos-setup first. The domain list
is per-machine and nothing ships with one — guessing here would invent a
vocabulary the user never chose.
Then measure this folder:
node ~/.claude/skills/aos-project-init/scripts/aos-project-doctor.mjsReport the failing rows before touching anything. On an existing repo some failures are deliberate: a repo public on purpose, a scratch folder with no remote, a project nobody wants the wiki daemon to visit. Ask rather than "fixing" those.
2. The interview
One question at a time, each with a proposal the user can accept in a word.
Skip anything already settled in .aos/project.json unless asked to change it.
Name and slug. Propose the folder name for both. The slug becomes the memB
project_id, and it is written down precisely so it survives a rename: a
binding derived from the basename orphans every memory the day the folder
moves, and two folders sharing a basename share one memory scope.
Domain. Offer the list from aos-config, preselected by what the path
implies — the first segment under the workspace root. If the project sits
outside that root, ask instead of guessing.
Wiki. Three separate questions, because they are three separate things:
initialise a wiki here at all · watch it, so it updates every
2h · setup .openwikiignore.
Watching is not free. Every watched project with changes costs an LLM call per cycle, and a free-tier key hits quota on a handful. Recommend watching repos under active work and leaving archives out.
memB. Bind the slug, then draft a project card instead of offering a file
dump. Read the project yourself — README.md, AGENTS.md/CLAUDE.md,
package.json/pyproject.toml, and the .aos/project.json this interview
settles — and distill a project card: 3–8 facts, each ≤ 300 chars, each
prefixed with its date (YYYY-MM-DD), covering what the project is, where it
lives, stack, status, and settled decisions. Show the numbered list and save
only on the user's confirmation:
add_memory({ text: "(2026-09-24) …", category: "project_card", project_id: "<stable-slug>", infer: false })The slug settled above is the project_id, so the hook's candidate matching
finds the card. Facts stay small and dated because cards are shown to every
future prompt in this project.
Synapse. A spatial map earns its keep on a codebase too large to hold in your head. Ask; do not default it on.
AGENTS.md. If missing, offer the template. If a real CLAUDE.md already
holds content, merge it into AGENTS.md first and only then replace it with a
pointer. Never silently replace it.
Stack detection & skill packs. Inspect the project root:
Cargo.tomlandsrc-tauri/tauri.conf.json(Tauri v2 desktop) orCargo.toml(Rust) → preselect therustgroup andapp-devpack (and thedesktop-appteam /tauri_expertrole withpb-tauri-e2efor Tauri).go.mod→ preselect thegogroup andapp-devpack.package.jsonwithvite→ preselect thereactgroup,web-design, andapp-devpacks.pyproject.toml/requirements.txt→ preselect thepythongroup. Preselect only when detected; otherwise list Rust/Tauri as an option next to Vite and Go.
Subagents & Multi-Harness Pipeline. Offer to initialize .aos/pipeline.json (or set per-role, per-harness model overrides via /subagent-setup; without an override agents use the session model, see docs/agent-models.md). Ensures subagents are automatically compiled across Claude Code, Antigravity, OpenCode, and Codex CLI.
With a GitHub remote, two more. Skip both entirely without a remote — a local-only repo has nowhere to put them, and a skipped question is clearer than one answered "no".
- CI: none · a gate (lint, typecheck, test — matched to the project type) ·
gate plus
release-please. - Triage: none · GitHub labels (
needs-triage,needs-info,ready-for-agent,ready-for-human,wontfix) · local markdown in.scratch/.
release-please computes the version from Conventional Commits and nothing
else: an unprefixed subject is invisible to it, and one feat: forces a minor
bump however small the change. Offering it imposes that rule on the project, so
write the rule into AGENTS.md in the same breath — and ask what the version
policy is. Some repos here move in patch steps only, where feat: needs
explicit permission.
3. Write
Show every intended write as one list, then write on agreement.
{
"name": "<Project Name>",
"slug": "<stable-slug>",
"domain": "<from aos-config>",
"openwiki": { "enabled": true, "watch": true },
"memb": { "projectId": "<stable-slug>" },
"synapse": false,
"ci": "gate",
"triage": "github"
}Then, call the CLI to write all pending files:
aos project init --filesThen, only for what the interview enabled:
# NEVER run openwiki --init yourself. It needs a real terminal. Instruct the user to run:
# NEVER run openwiki --init yourself. It needs a real terminal. Instruct the user to run:
openwiki --init # needs provider credentials in ~/.openwiki/.env (see /aos-setup)When the user chose to watch it, add the absolute path to projects in
~/.openwiki/projects.json — that file is the daemon's watch list. Merge into
it; never rewrite it.
Domain Registration (WORKTREE.md): Every project belongs to a domain (e.g., ~/dev/bdb-dev/). To ensure multi-agent navigation works, the parent domain directory must have a WORKTREE.md acting as a map. Check if ../WORKTREE.md exists. If it does, append a link to this new project specifying its Slug, Domain, active Harnesses, and a pointer to its .aos/project.json. If it doesn't exist, create it with a simple markdown list structure.
For memB, write the project card through the MCP with the slug as project_id
and project_card as category — domain-category rows are dead weight, since
the hook whitelist only injects project_card/godmode:
add_memory({ text: "(2026-09-24) …", category: "project_card", project_id: "<stable-slug>", infer: false })Raw file ingest is opt-in only — if the user explicitly asks for a dump, run
python3 ~/.gemini/config/mcps/memb-mcp/memb_ingest.py <path>; the default
answer is no.
Never write credentials or high-entropy strings into memory.
Memory import (optional)
When the project root sits outside every folder in aos memory list, ask once whether to add it to the daily memory
import, and on yes run aos memory add-path <project root>. Skip silently when aos memory is not available or
unified memory is off. Do not invent a path or a time: both are per machine and set by the user.
4. Confirm
node ~/.claude/skills/aos-project-init/scripts/aos-project-doctor.mjsReport the doctor's own count, and name anything left failing on purpose. Then
commit: chore: for wiring, docs: for AGENTS.md. Check the project's
version policy before reaching for feat:.
Router and team
Project init asks nothing new. It only records where a project-level router
override would live: .aos/router.json in the project root (project beats
~/.aos/router.json beats the shipped table). Create it with
aos-router set <role> <targets> --project, never by default.
- Peers:
aos-a2a listshows running A2A peers. Read-only information; init writes no A2A config.
5.3 state
Note in the confirmation (read-only): context profile, updates policy, mods,
gateway and memory as set at machine level, plus whether .aos/router.json exists.
Red flags
- Inventing a domain because
aos-confighas none. Send the user to/aos-setupinstead. - Deriving the memB binding from the folder name once a slug exists.
- Treating "has a wiki" as "is watched". They are different, and that gap is why wikis sit stale for months.
- Turning watching on for every repo. Quota is real.
- Committing an
AGENTS.mdstill full of template placeholders. - Asking about CI or GitHub triage in a repo with no remote.
- Offering
release-pleasewithout writing the Conventional Commits rule intoAGENTS.md— it is a trap otherwise. - Writing project memories under the domain as category — the hook never injects them.
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.

