agent-manifesto-kit 1.8.3 → 1.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -2
- package/collection/bundles/game-dev/README.md +69 -0
- package/collection/bundles/game-dev/RECOMMENDS.md +24 -0
- package/collection/bundles/game-dev/agents/game-code-reviewer.md +36 -0
- package/collection/bundles/game-dev/agents/game-image-generator.md +34 -0
- package/collection/bundles/game-dev/agents/game-visual-reviewer.md +34 -0
- package/collection/bundles/game-dev/skills/game-code/SKILL.md +54 -0
- package/collection/bundles/game-dev/skills/game-code/agents/openai.yaml +4 -0
- package/collection/bundles/game-dev/skills/game-code/references/engine-godot.md +45 -0
- package/collection/bundles/game-dev/skills/game-code/references/engine-threejs.md +47 -0
- package/collection/bundles/game-dev/skills/game-delegation/SKILL.md +58 -0
- package/collection/bundles/game-dev/skills/game-delegation/agents/openai.yaml +4 -0
- package/collection/bundles/game-dev/skills/game-dev-setup/SKILL.md +103 -0
- package/collection/bundles/game-dev/skills/game-dev-setup/agents/openai.yaml +4 -0
- package/collection/bundles/game-dev/skills/game-dev-setup/assets/agents-section.md +20 -0
- package/collection/bundles/game-dev/skills/game-dev-setup/references/config.md +46 -0
- package/collection/bundles/game-dev/skills/game-dev-setup/scripts/audit.py +202 -0
- package/collection/bundles/game-dev/skills/game-dev-setup/scripts/balance.py +197 -0
- package/collection/bundles/game-dev/skills/game-dev-setup/scripts/check.py +62 -0
- package/collection/bundles/game-dev/skills/game-dev-setup/scripts/delegate.py +350 -0
- package/collection/bundles/game-dev/skills/game-dev-setup/scripts/gamedev_config.py +163 -0
- package/collection/bundles/game-dev/skills/game-dev-setup/scripts/install.py +172 -0
- package/collection/bundles/game-dev/skills/game-dev-setup/scripts/instruction_size.py +75 -0
- package/collection/bundles/game-dev/skills/game-dev-setup/scripts/prompts/code_review.md +19 -0
- package/collection/bundles/game-dev/skills/game-dev-setup/scripts/prompts/image.md +5 -0
- package/collection/bundles/game-dev/skills/game-dev-setup/scripts/prompts/visual_review.md +13 -0
- package/collection/bundles/game-dev/skills/game-dev-setup/scripts/pyramid.py +84 -0
- package/collection/bundles/game-dev/skills/game-dev-setup/scripts/test_game_dev.py +309 -0
- package/collection/bundles/game-dev/skills/game-planning/SKILL.md +80 -0
- package/collection/bundles/game-dev/skills/game-planning/agents/openai.yaml +4 -0
- package/collection/bundles/game-dev/skills/game-testing/SKILL.md +58 -0
- package/collection/bundles/game-dev/skills/game-testing/agents/openai.yaml +4 -0
- package/collection/bundles/kit-adopt/conventions/recommended-companions.md +1 -1
- package/collection/skills/astro-preview/SKILL.md +97 -41
- package/collection/skills/astro-preview/references/manifest.md +42 -0
- package/collection/skills/astro-preview/scripts/portal.py +686 -0
- package/collection/skills/astro-preview/scripts/test_portal.py +576 -0
- package/collection/skills/mixamo/SKILL.md +109 -0
- package/collection/skills/mixamo/agents/openai.yaml +4 -0
- package/collection/skills/mixamo/scripts/mixamo.py +264 -0
- package/collection/skills/mixamo/scripts/test_mixamo.py +108 -0
- package/collection/skills/sfx-creator/SKILL.md +160 -0
- package/collection/skills/sfx-creator/agents/openai.yaml +4 -0
- package/package.json +1 -1
|
@@ -1,60 +1,116 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: astro-preview
|
|
3
|
-
description:
|
|
3
|
+
description: Work with Astro Preview, the local portal and asset viewer of all projects - register a project, give it a portal manifest and a wiki (idea, concepts, mechanics or features, technology), declare its approved sound folders and run command, update the wiki from recent commits with a cheaper model, install or turn off the wiki hook that does it after merges to main, and open browser previews of images, sound, 3D models, animations, local HTML/Vite apps or comparisons. Use when a project should appear in Astro Preview, when its wiki is missing or stale, when sounds or run commands shown in the portal are wrong, to enable or disable automatic wiki updates, or when assets need a visual or audible check in the existing viewer rather than a project-specific preview app.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Prepare a local Astro Preview workspace for the requested assets, open the relevant viewer, and report the observed result. Building or changing Astro Preview itself is outside this workflow.
|
|
9
|
-
|
|
10
|
-
## Prerequisites
|
|
6
|
+
# Astro Preview
|
|
11
7
|
|
|
12
|
-
|
|
13
|
-
- Use the checkout's `README.md` as the tool documentation. Resolve a clickable local link to that file when reporting setup. Install [Node.js](https://nodejs.org/en/download) matching the checkout's `package.json` engine, then run `npm --prefix "$ASTRO_PREVIEW_DIR" install` once if dependencies are absent.
|
|
14
|
-
- Verify the checkout with `node "$ASTRO_PREVIEW_DIR/bin/viewer.mjs" --help` and confirm it identifies Astro Preview. If the checkout cannot be located, request its path and halt setup; do not substitute another viewer silently.
|
|
15
|
-
- For Vite profiles, the selected project needs its own installed [Vite](https://vite.dev/guide/) and dependencies. Follow that project's package manager and dependency versions; if installation is needed, use its documented install command. Verify with the project-local `node node_modules/vite/bin/vite.js --version` from the Vite directory (or the package manager's local binary equivalent). Astro Preview never installs packages or runs arbitrary shell commands.
|
|
16
|
-
- Native GLB/glTF previews need no Blender. `.blend`, OBJ and FBX conversion require [Blender](https://www.blender.org/download/) on macOS, at the default application path or via `VIEWER_BLENDER`. Verify the configured executable with `--version` before conversion. Other formats can still be previewed when Blender is absent.
|
|
17
|
-
|
|
18
|
-
## Procedure
|
|
19
|
-
|
|
20
|
-
Apply the boundaries below throughout these steps; halt only the affected operation when a prerequisite or authorization is missing.
|
|
8
|
+
## Scope
|
|
21
9
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
10
|
+
Astro Preview is a local TypeScript server and browser app (http://127.0.0.1:4174). Its home shows every registered
|
|
11
|
+
project as a card; inside a project an icon rail switches Overview (README, Run commands, LAUNCH), Wiki, Files,
|
|
12
|
+
Sounds, Roadmap, Reviews and Launch settings. This skill keeps a project's portal files current and opens assets in
|
|
13
|
+
the viewer. Building or changing Astro Preview itself is outside it. Astro only reads projects; everything the portal
|
|
14
|
+
shows lives in the project:
|
|
25
15
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
16
|
+
| File | Purpose |
|
|
17
|
+
| --- | --- |
|
|
18
|
+
| `.astro/portal.json` | Manifest: `type` (`game` or `app`), `title`, `wiki` folder, `sounds` folders, `run` command, `autoUpdate`, `model`, `effort` |
|
|
19
|
+
| `docs/wiki/NN-slug.md` | Wiki pages, ordered by file name; the first `# heading` is the page title |
|
|
20
|
+
| `docs/wiki/.state.json` | Written by the updater: last processed commit and time; drives the "Needs update" mark |
|
|
21
|
+
| sound folders | Every audio file in a folder listed in `sounds` is an approved sound; subfolders are categories; sfx-factory sidecars (`<name>.json`) and `ATTRIBUTION.txt` supply licence and credits |
|
|
22
|
+
| `docs/roadmap.html` | Roadmap page built by the `roadmap` skill, linked in the Roadmap section |
|
|
30
23
|
|
|
31
|
-
|
|
32
|
-
4. Generate a stable viewer link when useful:
|
|
24
|
+
Manifest format and defaults: [references/manifest.md](references/manifest.md).
|
|
33
25
|
|
|
34
|
-
|
|
35
|
-
node "$ASTRO_PREVIEW_DIR/bin/viewer.mjs" open "project-id" "asset-id-a" "asset-id-b" --layout 2 --json
|
|
36
|
-
```
|
|
26
|
+
## Prerequisites
|
|
37
27
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
28
|
+
- An Astro Preview checkout; the consumer supplies its path as `ASTRO_PREVIEW_DIR` (or `register --astro-dir`). Do not assume a personal path or a published npm package. Its `README.md` is the tool documentation. Install [Node.js](https://nodejs.org/en/download) matching its `package.json` engine and run `npm --prefix "$ASTRO_PREVIEW_DIR" install` once if dependencies are absent. Verify with `node "$ASTRO_PREVIEW_DIR/bin/viewer.mjs" --help`; if the checkout cannot be located, ask for its path and stop that operation; never substitute another viewer silently.
|
|
29
|
+
- Portal commands: [Python 3.10+](https://www.python.org/downloads/) (standard library) and `git`; verify `python3 .claude/skills/astro-preview/scripts/portal.py --help`.
|
|
30
|
+
- Wiki updates by model: a logged-in [Claude Code](https://code.claude.com/docs/en/setup) `claude` CLI (`claude --version`). Without it, write the wiki pages yourself.
|
|
31
|
+
- Vite profiles: the project's own installed [Vite](https://vite.dev/guide/); verify `node node_modules/vite/bin/vite.js --version` from its Vite directory. Astro Preview never installs packages.
|
|
32
|
+
- `.blend`, OBJ and FBX previews: [Blender](https://www.blender.org/download/) at the default macOS path or `VIEWER_BLENDER`; verify it with `--version`. GLB/glTF need no Blender.
|
|
33
|
+
|
|
34
|
+
## Portal commands
|
|
35
|
+
|
|
36
|
+
Run from the project root or pass `--project DIR`. The script is installed with this skill under
|
|
37
|
+
`.claude/skills/astro-preview/` (other tools use their own skills directory; a global install uses that location):
|
|
38
|
+
`P=.claude/skills/astro-preview/scripts/portal.py`.
|
|
39
|
+
|
|
40
|
+
```sh
|
|
41
|
+
python3 $P init --type game|app [--title T] [--sounds assets/audio,sfx] [--run "npm run dev"] # never overwrites
|
|
42
|
+
python3 $P register [--name NAME] [--astro-dir DIR] # add the project to Astro Preview's catalog (its CLI)
|
|
43
|
+
python3 $P status [--json] # manifest, pages, hook, staleness
|
|
44
|
+
python3 $P update [--full] [--no-commit] # update the wiki now (--full rewrites it), commit docs/wiki alone
|
|
45
|
+
python3 $P hook install|remove # post-commit + post-merge hook: background update on main
|
|
46
|
+
python3 $P disable | enable # autoUpdate false/true in the manifest (the hook stays, does nothing)
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Tests of the tool: `python3 -m unittest discover -s .claude/skills/astro-preview/scripts`.
|
|
50
|
+
|
|
51
|
+
## Giving a project a portal
|
|
52
|
+
|
|
53
|
+
1. `init` with the right type; fill `title`, `sounds` and `run` (the command run from the project root, e.g.
|
|
54
|
+
`npm run dev` or `godot --path .`). Keep paths relative, no `..` or hidden folders.
|
|
55
|
+
2. Fill the wiki: either `update` (the configured model reads the repository and fills every page), or write the
|
|
56
|
+
pages yourself from what the project really contains. English, concise, no invented features. Keep the
|
|
57
|
+
`NN-slug.md` names of the template; add pages with new numbers when a topic needs its own page.
|
|
58
|
+
3. `register` (or Astro's **Add project**) so the card appears; Astro refreshes on reload.
|
|
59
|
+
4. Optionally `hook install`. Commit `.astro/portal.json` and `docs/wiki/` following the project's own Git rules.
|
|
60
|
+
|
|
61
|
+
Wiki pages show the project, not only describe it. Embed the project's own files with Markdown image syntax and a
|
|
62
|
+
path relative to the page, one per line (consecutive lines form a gallery), with a short caption as alt text:
|
|
63
|
+
``, ``, ``.
|
|
64
|
+
Images show at full size, GLB/glTF as a rendered still and other models (.blend .fbx .obj) as their thumbnail;
|
|
65
|
+
clicking opens a preview tab. Only files inside the project root that its scan lists resolve, so hidden, build and
|
|
66
|
+
dependency folders and symlinks never show. Concepts & Art, Characters & Entities and Levels & World should carry
|
|
67
|
+
visuals when the repository has them; the updater's prompt asks for this, and `update --full` adds them to old pages.
|
|
68
|
+
|
|
69
|
+
## How the update works
|
|
70
|
+
|
|
71
|
+
`update` creates a detached git worktree of HEAD in a temporary folder and runs `claude -p` there with the manifest's
|
|
72
|
+
`model` and `effort` (configuration defaults in [references/manifest.md](references/manifest.md)), tools limited to
|
|
73
|
+
reading and to editing `docs/wiki/**`. Only the wiki folder is copied back; anything else the agent changed is
|
|
74
|
+
discarded with the snapshot. Then `.state.json` is written and `git commit -- docs/wiki` commits the wiki alone, so
|
|
75
|
+
the user's staged or unstaged work stays as it was. It refuses while `docs/wiki` has uncommitted edits and is a no-op
|
|
76
|
+
when no commit outside the wiki followed the processed one. A project can be a subfolder of its repository: commands
|
|
77
|
+
use `--project` (as registered in Astro) or the nearest folder holding a manifest. The snapshot skips LFS downloads
|
|
78
|
+
and checkout hooks. Before writing, it checks that the branch, the committed wiki and the working wiki did not change
|
|
79
|
+
while the agent ran; otherwise it writes nothing. Only wiki files tracked at the processed commit can be deleted; if
|
|
80
|
+
the commit fails, the files it wrote are restored.
|
|
81
|
+
|
|
82
|
+
`hook install` appends a block marked with the project folder (several projects in one repository each keep their
|
|
83
|
+
own) to `.git/hooks/post-commit` and `post-merge`, keeping existing hook content. With a hook manager
|
|
84
|
+
(`core.hooksPath`) or a non-shell hook it refuses and prints the line to add there (`--force` overrides). It acts only
|
|
85
|
+
on `main`/`master` in the main checkout, outside rebases and merges, not for its own or the roadmap hook's commits,
|
|
86
|
+
and only when `autoUpdate` is true. It detaches and logs to `.git/astro-wiki.log`; a per-project lock prevents
|
|
87
|
+
parallel runs. Unattended runs need a `claude` login (`claude auth login`, or `claude setup-token` with
|
|
88
|
+
`CLAUDE_CODE_OAUTH_TOKEN` in the hooks' environment). A failed run writes nothing; the error is in the log (hook) or
|
|
89
|
+
on stderr. `ASTRO_CLAUDE` overrides the `claude` executable (tests use a fake).
|
|
90
|
+
|
|
91
|
+
## Previewing assets
|
|
92
|
+
|
|
93
|
+
1. Locate the actual output files and select the smallest useful roots; prefer generated asset folders over the whole repository. Keep the project name stable and use absolute paths.
|
|
94
|
+
2. Reuse a running instance if its page loads with the intended catalog. Otherwise run `npm --prefix "$ASTRO_PREVIEW_DIR" run dev` in a managed terminal (`start` for an existing build) and open `http://127.0.0.1:4174`, respecting `VIEWER_PORT`. Stop only a process this task started.
|
|
95
|
+
3. Register idempotently: `node "$ASTRO_PREVIEW_DIR/bin/viewer.mjs" project add "Project name" --root /abs/outputs --root /abs/refs --json`, then `project show "Project name" --json`. CLI and server must share `VIEWER_DATA_DIR` when set. Existing roots remain. On duplicate names, stop and ask for a unique name. `project list`, `asset list` and `project scan` (with `--json`) read the catalog. Reload the viewer page after catalog changes.
|
|
96
|
+
4. For a stable link: `node "$ASTRO_PREVIEW_DIR/bin/viewer.mjs" open "project-id" "asset-a" "asset-b" --layout 2 --json`, then open the URL with the browser tool. Links capture project, assets and layout, not camera or playback state; a stale ID is reported, never invented.
|
|
97
|
+
5. Choose the relevant files: zoom/pan for images, waveform/playback/seek/loop for sound, camera/wireframe/parts/animation for 3D. Use 2–6 comparison slots across projects; Linked animations share time and play state while each slot keeps its clip; Front/Rear/Left/Right/Top, Skeleton and Bounds aid inspection. Verify playback advances in every relevant slot.
|
|
98
|
+
6. Two sounds: Audio A/B switches at the current position (RMS matching cannot match silence). Two same-size images: Pixel difference (first frame/page, up to 8 MP); report changed-pixel count/percentage and the heatmap.
|
|
99
|
+
7. HTML/Vite apps: in Project previews reuse or add a profile with an authorized root and entry, then Start and Open preview. Viewer links never start profiles. If Vite is absent, skip that launch and continue.
|
|
100
|
+
8. After asset changes, wait for live refresh (Refresh for exports that keep size/mtime) and verify the real browser result. An API response or screenshot alone does not prove sound is audible or animation plays; report what was actually checked.
|
|
43
101
|
|
|
44
102
|
## Boundaries
|
|
45
103
|
|
|
46
|
-
-
|
|
47
|
-
-
|
|
48
|
-
- Keep the server on loopback
|
|
49
|
-
- GLB/glTF
|
|
50
|
-
- Sound codecs depend on the browser. GIF/multipage images display the first frame/page. Video and unsupported formats have no interactive viewer; compressed glTF needing Draco/meshopt/Basis decoders is unsupported. Report a relevant limitation and continue with supported assets; Astro Preview's cache-only Blender conversion is part of previewing; exporting converted assets outside its cache requires a separate user request.
|
|
51
|
-
- Data uses Astro Preview's own catalog, separate from Astro Pilot. Do not claim imported projects or reduced memory usage unless verified.
|
|
104
|
+
- Never make Astro Preview write into a project; change the project's files and let the portal re-read them. Do not hand-edit `.state.json`; turn automation off with `disable`, not by deleting the hook. Wiki pages describe the project as it is; plans belong in the task tracker and the roadmap.
|
|
105
|
+
- Registering folders authorizes catalog/cache changes only; viewers keep source assets read-only. Review decisions, comments, archive and deletion write review state; do them only on explicit request.
|
|
106
|
+
- Starting Vite or Godot runs the project's trusted code with host permissions. Launch only the user's intended project. Keep the server on loopback; never upload assets, publish the app or replace a user's running process.
|
|
107
|
+
- GLB/glTF dependencies must stay inside configured roots; do not weaken path validation or fetch remote dependencies. Video, Draco/meshopt/Basis-compressed glTF and other unsupported formats have no viewer; report the limitation and continue. Exporting converted assets outside the cache needs a separate request.
|
|
52
108
|
|
|
53
109
|
## Output Contract
|
|
54
110
|
|
|
55
111
|
Emit `Skill: astro-preview - output below`, then state:
|
|
56
112
|
|
|
57
|
-
-
|
|
58
|
-
-
|
|
113
|
+
- Portal: manifest path and type, wiki pages created or updated (and whether committed), hook and `autoUpdate` state, or "not touched".
|
|
114
|
+
- Viewer URL, whether the server was reused or started, registered project name/ID and roots.
|
|
59
115
|
- Assets/view mode, optional profile/runtime URL, and observed rendering, playback or comparison metrics.
|
|
60
|
-
-
|
|
116
|
+
- Limitations, missing prerequisites, failed updates or unverified playback/rendering.
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# `.astro/portal.json`
|
|
2
|
+
|
|
3
|
+
One JSON object in a project root. Astro Preview reads the first root that has one; the paths below are relative to
|
|
4
|
+
that root (no leading `/`, no `..`, no hidden segments).
|
|
5
|
+
|
|
6
|
+
```json
|
|
7
|
+
{
|
|
8
|
+
"version": 1,
|
|
9
|
+
"type": "game",
|
|
10
|
+
"title": "Tower Rush",
|
|
11
|
+
"wiki": "docs/wiki",
|
|
12
|
+
"sounds": ["assets/audio"],
|
|
13
|
+
"run": "npm run dev",
|
|
14
|
+
"autoUpdate": true,
|
|
15
|
+
"model": "claude-sonnet-5-5",
|
|
16
|
+
"effort": "medium"
|
|
17
|
+
}
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
| Key | Default | Meaning |
|
|
21
|
+
| --- | --- | --- |
|
|
22
|
+
| `version` | `1` | Format version; other values are rejected |
|
|
23
|
+
| `type` | required | `game` or `app`; selects the wiki template and the card icon |
|
|
24
|
+
| `title` | README heading | Display title on the card |
|
|
25
|
+
| `wiki` | `docs/wiki` | Folder of `*.md` wiki pages |
|
|
26
|
+
| `sounds` | `[]` | Up to 16 approved audio folders |
|
|
27
|
+
| `run` | none | One-line command run from the root; shown first in Overview → Run as `cd '<root>' && <run>` |
|
|
28
|
+
| `autoUpdate` | `true` | Lets the hook update the wiki; `portal.py disable` sets it to `false` |
|
|
29
|
+
| `model` | `claude-sonnet-5-5` | Model for wiki updates |
|
|
30
|
+
| `effort` | `medium` | `low`, `medium` or `high` reasoning effort for wiki updates |
|
|
31
|
+
|
|
32
|
+
Unknown keys are kept by `portal.py` and ignored by Astro Preview. An invalid manifest is reported in the portal and
|
|
33
|
+
the project still opens.
|
|
34
|
+
|
|
35
|
+
Wiki templates (`init`):
|
|
36
|
+
|
|
37
|
+
- game: Idea, Concepts & Art, Core Mechanics, Game Loop, Characters & Entities, Levels & World, Controls, Audio,
|
|
38
|
+
Technology;
|
|
39
|
+
- app: Idea, Domain Concepts, Features, User Flows, Architecture, Technology.
|
|
40
|
+
|
|
41
|
+
`.state.json` in the wiki folder (written by `update`): `{"commit": "<sha>", "updatedAt": "<UTC ISO>", "model": ...,
|
|
42
|
+
"effort": ...}`. The portal marks the wiki "Needs update" when commits outside the wiki folder follow `commit`.
|