agentleFS
hybridlabor-apihybridlabor-api/aos/skills/global_config/aos-project-init/SKILL.md

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

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

    If it reports *unvollständig*, stop and run /aos-setup first.

    line 28
  2. Distinctive:

    AGENTS.md: If missing, offer the template.

    line 86
  3. Very specific:

    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.

    line 149
  4. Distinctive:

    Never write credentials or high-entropy strings into memory.

    line 167
  5. Very specific:

    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 …

    line 173

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

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.mjs

Report 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.toml and src-tauri/tauri.conf.json (Tauri v2 desktop) or Cargo.toml (Rust) → preselect the rust group and app-dev pack (and the desktop-app team / tauri_expert role with pb-tauri-e2e for Tauri).
  • go.mod → preselect the go group and app-dev pack.
  • package.json with vite → preselect the react group, web-design, and app-dev packs.
  • pyproject.toml / requirements.txt → preselect the python group. 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 --files

Then, 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.mjs

Report 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 list shows 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-config has none. Send the user to /aos-setup instead.
  • 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.md still full of template placeholders.
  • Asking about CI or GitHub triage in a repo with no remote.
  • Offering release-please without writing the Conventional Commits rule into AGENTS.md — it is a trap otherwise.
  • Writing project memories under the domain as category — the hook never injects them.

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.