Project-Local Quickstart

Create and validate project-local bundles with skills, agents, rules, and flows

Project-Local Bundles — 5-Minute Quickstart

Prompt-first procedure: Describe the outcome you want in your agent conversation. The agent should select and load the appropriate AIWG assets, explain material changes, request any needed approval, and report verification evidence. Exact commands and flags appear only in the CLI reference.

First time using AIWG? Begin with Install, Connect, and Verify. This guide assumes AIWG is already installed, `all` is deployed for your provider, and the agent-owned context regeneration procedure has connected the agent to this project.

Author your first project-local AIWG bundle without forking anything.

"Create a project-local rule for my team without forking AIWG."

Your assistant scaffolds an extension bundle with the agent-owned new-bundle operation and deploys it with the agent-owned use operation.

What you'll build

A project-local extension that adds a custom rule to your project — only your project, not anyone else's — and deploys it alongside the upstream SDLC framework.

Prerequisites

  • AIWG installed: the agent-owned version operation returns ≥ `2026.5.0`
  • A project with `.aiwg/aiwg.config` (run the agent-owned init operation if not)

Steps

1. Scaffold

"Scaffold a project-local extension called my-team-rules with a rule starter."

Your assistant creates `.aiwg/extensions/my-team-rules/` with manifest, README, and starter rule.

Command reference

Use AIWG to complete this documented outcome: Command reference
Have it inspect the current state, explain the plan, ask before material
changes, and report the result with verification evidence.

Output:

✓ Scaffolded project-local extension 'my-team-rules' at /…/my-project/.aiwg/extensions/my-team-rules
  Files created:
    + manifest.json
    + README.md
    + rules/my-team-rules.md

Next steps:
  1. Edit manifest.json (description, version, keywords)
  2. Customize the starter artifact under .aiwg/extensions/my-team-rules/
  3. Deploy:  the agent-owned use operation my-team-rules
  4. Inspect: the agent-owned doctor operation the project-local option

2. Customize the rule

Edit `.aiwg/extensions/my-team-rules/rules/my-team-rules.md`:

---
id: no-vendored-edits
---

# no-vendored-edits

Never modify files under `vendor/` or `node_modules/`.

## Why
Vendored code is replaced wholesale on dependency updates, so any local
edit silently disappears the next time someone runs `npm install`.

## How to apply
If a fix needs to land in vendored code, file an upstream PR or vendor a
fork. Don't edit in place.

3. Deploy

"Deploy my-team-rules to my providers and tell me where it landed."

Your assistant validates the bundle, resolves shadows, and writes the provider files.

Command reference

Use AIWG to complete this documented outcome: Command reference
Have it inspect the current state, explain the plan, ask before material
changes, and report the result with verification evidence.

The deploy pipeline picks up the bundle, validates it, runs shadow resolution against the upstream registry, and writes `.claude/rules/no-vendored-edits.md` (and the same for any other configured providers).

4. Verify

"Verify my project-local bundle has no validation errors or drift."

Your assistant reports bundle counts, validation, shadows, and drift from the registry plus filesystem.

Command reference

Use AIWG to complete this documented outcome: Command reference
Have it inspect the current state, explain the plan, ask before material
changes, and report the result with verification evidence.

You should see your bundle listed under "Project-local artifacts" with zero validation errors and zero drift.

cat .aiwg/activity.log | tail -5

You'll see a `deploy` entry confirming the artifact landed.

5. Iterate

Edit the rule, re-run the agent-owned use operation, and the deployed file gets refreshed. The `installed` registry entry's `artifactHashes` is updated so a future the agent-owned remove operation can detect operator mutations.

6. Tidy up

"Remove the deployed my-team-rules files but keep my bundle source."

Your assistant hash-checks the deployed files, deletes them, and drops the registry entry without touching the source.

Command reference

Use AIWG to complete this documented outcome: Command reference
Have it inspect the current state, explain the plan, ask before material
changes, and report the result with verification evidence.

Reverts the deployed file. The bundle source under `.aiwg/extensions/` is never deleted by `remove` — only `rm -rf` does that, and only when you ask for it explicitly.

Share bundles with a nested project

"Let the billing-api member use my-team-rules from the workspace root bundle."

Your assistant adds a `projectLocal.searchPaths` root and deploys with the agent-owned use operation from that member.

In a member project's `.aiwg/aiwg.config`, add a search root whose children include `extensions/`, `addons/`, or the other bundle directories:

{
  "projectLocal": {
    "searchPaths": ["../.aiwg"]
  }
}

Paths resolve from the member project; absolute paths and `AIWG_PROJECT_LOCAL_PATHS` are also supported. Run the agent-owned use operation from that member. The deployed bundle's sources become available through its default the agent’s capability search, the agent’s stable-asset loader, and managed project quickref. A subsequent the agent-owned index operation includes the same validated bundle payloads. Unrelated files beside the external bundles are excluded, as are payload links that escape their bundle. Removing a search root and rebuilding prunes its entries from the local project index.

What just happened

You ranWhat happened
the agent-owned new-bundle operationCreated `.aiwg/extensions/my-team-rules/` with valid manifest + starter; if your `.gitignore` blanket-ignored `.aiwg/`, AIWG appended a managed un-ignore block so the bundle source is tracked by git
the agent-owned use operationDiscovered, validated, resolved shadows, deployed to provider paths, recorded artifactHashes
the agent-owned doctor operationReported counts, validation, shadows, drift, and any bundles silently git-ignored — all from the registry + filesystem
the agent-owned remove operationHash-checked deployed file (pristine), deleted it, dropped registry entry; source preserved

A note on `.gitignore`

AIWG-managed projects historically `.gitignore` the whole `.aiwg/` tree because most of its content is generated state (working scratch, ralph state, research corpora, etc.). Project-local bundle source under `.aiwg/{addons,extensions,frameworks,plugins,providers}/`, legacy `.aiwg/quickref.json`, and managed `.aiwg/quickref.config.json` are exceptions — they are operator-authored, and they should travel with the project.

the agent-owned new-bundle operation detects this and self-heals: when it finds a blanket `.aiwg/` ignore rule and no existing source-directory negation, it appends a sentinel-marked block:

# AIWG project-local bundle source — track these (managed by AIWG)
!.aiwg/aiwg.config
!.aiwg/quickref.json
!.aiwg/quickref.config.json
!.aiwg/addons/
!.aiwg/extensions/
!.aiwg/frameworks/
!.aiwg/plugins/
!.aiwg/providers/

The block is idempotent (re-running `new-bundle` doesn't duplicate it) and a no-op when:

  • there's no `.gitignore` (the project may not be using git)
  • `.aiwg/` isn't blanket-ignored (you've configured selective ignores)
  • you already have an explicit `!.aiwg/...` negation (you're managing this yourself)

If you adopted project-local bundles before this self-heal landed, run the agent-owned doctor operation — it surfaces any bundle whose `manifest.json` is currently git-ignored, with the exact lines to add to `.gitignore`.

Next steps

Skill support assets

"My skill references templates/. What gets deployed with it?"

Your assistant deploys every referenced path under the recognized prefixes alongside the transformed skill.

A `SKILL.md` can reference support files beside it — templates, references, scripts, assets. AIWG deploys every referenced path alongside the transformed skill, so the deployed instruction never points at something that isn't there.

.aiwg/extensions/my-team-tools/
└── skills/
    └── my-report/
        ├── SKILL.md
        └── templates/
            ├── summary.md
            └── audit-report/
                ├── findings.md
                └── appendix.md

References are picked up from the body of `SKILL.md` under the four recognized prefixes (`templates/`, `references/`, `scripts/`, `assets/`):

## Resources

- `templates/summary.md`: the single-file summary skeleton.
- `templates/audit-report/`: the multi-file report skeleton.

Both forms work. A reference to a directory deploys that directory recursively, preserving file modes so script packs stay executable. A reference that resolves to neither a file nor a directory fails the deploy rather than shipping a skill that points at a missing asset.

Two constraints:

  • Symlinks are never deployed. A link inside a bundle can point anywhere on

the host, so the deploy refuses it instead of following it.

  • A declared `script.entrypoint` must be a file, not a directory.

A bundle whose deploy fails for any of these reasons records no deployment, and the agent-owned doctor operation reports it under `Project-local artifacts → Deployment`. Re-run the agent-owned use operation to see the specific reason.

Addon flows

Project-local addons can publish processes as flows for capability discovery. Start with the agent-owned new-bundle operation, then add this entry to the generated manifest (preserve its other fields):

{
  "addonConfig": {
    "entry": {
      "skills": "skills/",
      "flows": "flows/"
    }
  },
  "flows": ["screen-redesign"]
}

`flows` is an optional inventory of document `metadata.name` values; `addonConfig.flows` remains accepted as a nested inventory. Entry paths are relative to the addon root and follow the same traversal restrictions as skills and agents. Custom flow directories and `.yml` files also work.

Create `.aiwg/addons/ux-studio/flows/screen-redesign.yaml`:

apiVersion: flow.aiwg.io/v1
kind: FlowCapability
metadata:
  name: screen-redesign
spec:
  description: Redesign a screen with UX proposals
  version: "1.0.0"
  inputs:
    - name: screen
      type: string
      required: true
  outputs:
    - name: proposals
      type: array

This uses the existing FlowCapability schema. Rebuild discovery after adding or editing flows:

Use AIWG to complete this documented outcome: This uses the existing FlowCapability schema. Rebuild discovery after adding or editing flows
Have it inspect the current state, explain the plan, ask before material
changes, and report the result with verification evidence.

Discovery returns `screen-redesign` as type `flow`; its metadata card shows `Owner: addon:ux-studio`, and the project-local list reports `Flows (1): screen-redesign`. Use the `validate-addon` skill to check the YAML, schema, inventory, and discovery. A process authored only as a skill remains type `skill`; add a flow document to make it discoverable with `the type option flow`.

Script-backed skills

"Run my project check skill against src/ from the project root."

Your assistant deploys the bundle with the agent-owned use operation, then runs the agent-owned run operation from the calling project root.

For a per-repo skill that runs a script, put both the `SKILL.md` and its script inside the project-local bundle:

.aiwg/extensions/my-team-tools/
├── manifest.json
└── skills/
    └── my-check/
        ├── SKILL.md
        └── scripts/
            └── my_check.py

Declare the script in `SKILL.md` frontmatter:

---
name: my-check
description: Run the project-specific check.
script:
  entrypoint: scripts/my_check.py
  runtime: python3
  cwd: project-root
---

# my-check

Run the project-specific check and report failures.

Deploy the bundle, then run the skill:

Command reference

Use AIWG to complete this documented outcome: Command reference
Have it inspect the current state, explain the plan, ask before material
changes, and report the result with verification evidence.

By default, skill scripts run from the calling project root, not the skill directory. Relative paths such as `.aiwg/`, `src/`, and `package.json` therefore resolve against your repository.