agent-manifesto-kit 1.6.0 → 1.8.0

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.
Files changed (29) hide show
  1. package/README.md +49 -0
  2. package/collection/NOTICE.md +8 -0
  3. package/collection/skills/astro-preview/SKILL.md +60 -0
  4. package/collection/skills/kimodo-motion/SKILL.md +101 -0
  5. package/collection/skills/kimodo-motion/agents/openai.yaml +4 -0
  6. package/collection/skills/kimodo-motion/patches/kimodo-cpp-keyposes.patch +398 -0
  7. package/collection/skills/kimodo-motion/scripts/kimodo_motion.py +459 -0
  8. package/collection/skills/kimodo-motion/scripts/kimodo_retarget.py +280 -0
  9. package/collection/skills/kimodo-motion/tests/blender_roundtrip.py +105 -0
  10. package/collection/skills/kimodo-motion/tests/test_kimodo_motion.py +183 -0
  11. package/collection/skills/roadmap/SKILL.md +49 -0
  12. package/collection/skills/roadmap/agents/openai.yaml +4 -0
  13. package/collection/skills/roadmap/assets/post-commit.sh +33 -0
  14. package/collection/skills/roadmap/assets/template.html +470 -0
  15. package/collection/skills/roadmap/references/format.md +51 -0
  16. package/collection/skills/roadmap/scripts/roadmap.py +852 -0
  17. package/collection/skills/roadmap/scripts/test_roadmap.py +578 -0
  18. package/collection/skills/self-reflection/SKILL.md +121 -0
  19. package/collection/skills/self-reflection/agents/openai.yaml +4 -0
  20. package/collection/skills/self-reflection/assets/report-template.json +8 -0
  21. package/collection/skills/self-reflection/assets/report.html +64 -0
  22. package/collection/skills/self-reflection/references/report-format.md +42 -0
  23. package/collection/skills/self-reflection/scripts/export_claude.py +59 -0
  24. package/collection/skills/self-reflection/scripts/reflect.py +320 -0
  25. package/collection/skills/self-reflection/scripts/report.py +322 -0
  26. package/collection/skills/self-reflection/tests/test_export_claude.py +83 -0
  27. package/collection/skills/self-reflection/tests/test_reflect.py +189 -0
  28. package/collection/skills/self-reflection/tests/test_report.py +250 -0
  29. package/package.json +1 -1
package/README.md CHANGED
@@ -86,6 +86,18 @@ The [Blender bundle](collection/bundles/blender-3d/README.md) includes Quick, St
86
86
  Production workflows, compact create/fix handoffs and per-phase usage records. Start with
87
87
  `blender-asset`; animation and export checks are optional additions to the selected profile.
88
88
 
89
+ Use the local Astro Preview application for project asset previews:
90
+
91
+ ```bash
92
+ agentkit sync astro-preview --provider claude,codex
93
+ ```
94
+
95
+ The [Astro Preview skill](collection/skills/astro-preview/SKILL.md) covers stable preview links,
96
+ linked model animations, image differences, audio A/B and local HTML/Vite profiles.
97
+ Supply the application's checkout once through
98
+ `ASTRO_PREVIEW_DIR` or project context. The skill reuses its local server and catalog;
99
+ Agentkit installs the instructions, while the application is installed separately.
100
+
89
101
  Get retro suggestions after significant sessions (optional Stop-hook nudge for both tools):
90
102
 
91
103
  ```bash
@@ -93,6 +105,43 @@ agentkit sync session-retro --provider claude,codex
93
105
  python3 .claude/skills/session-retro/scripts/install_hooks.py
94
106
  ```
95
107
 
108
+ Review new portions of Codex session history with persistent checkpoints and an offline HTML report history:
109
+
110
+ ```bash
111
+ agentkit sync self-reflection --provider claude,codex
112
+ ```
113
+
114
+ The [Self Reflection skill](collection/skills/self-reflection/SKILL.md) includes Python helpers,
115
+ tests and report templates. It reviews instructions and delegation, carries open episodes and
116
+ recommendations between runs, and keeps logs and review state local. Requires Python 3.10+
117
+ on macOS/Linux. Both providers can run it; the input format remains Codex JSONL, not native
118
+ Claude transcripts. Unlike the single-session `session-retro` digest above, it incrementally
119
+ reviews project history and publishes a cumulative report with a date/time selector.
120
+ The bundled Claude exporter also supports an explicitly chosen project or global install.
121
+
122
+ Generate humanoid clips locally with NVIDIA Kimodo, starting and ending in a rig's own poses:
123
+
124
+ ```bash
125
+ agentkit sync kimodo-motion --provider claude,codex
126
+ ```
127
+
128
+ The [Kimodo Motion skill](collection/skills/kimodo-motion/SKILL.md) ships a patch that adds key-pose
129
+ constraints (upstream Kimodo's constraints JSON) to the native kimodo.cpp build, Python helpers for
130
+ generation, key-pose error gates, frame sheets and residual easing, and Blender scripts that turn a
131
+ Mixamo-named rig's pose into a key pose and bake takes back onto the rig. kimodo.cpp, its models and
132
+ Blender are installed separately; `KIMODO_ROOT` and `BLENDER` point at them.
133
+
134
+ Give any project a roadmap page from its TaskPilot items and git history:
135
+
136
+ ```bash
137
+ agentkit sync roadmap --provider claude,codex
138
+ ```
139
+
140
+ The [Roadmap skill](collection/skills/roadmap/SKILL.md) installs `scripts/roadmap.py` (`init`, `build`,
141
+ `check`, `path`), one shared template (English and Russian), a post-commit hook and the format
142
+ reference. The generated page is self-contained and carries its template id and data, so tools such as
143
+ Astro Preview can list it, and `check --template-from` reports a project whose template drifted.
144
+
96
145
  Adopt a single skill for Codex:
97
146
 
98
147
  ```bash
@@ -34,3 +34,11 @@ This collection contains skills and agents derived in part from third-party open
34
34
  - **Source:** `meta-tags-optimizer` skill by Aaron He Zhu — https://github.com/aaron-he-zhu/seo-geo-claude-skills/tree/main/build/meta-tags-optimizer
35
35
  - **License:** Apache License 2.0
36
36
  - **Nature of derivation:** Concept, length budgets, and tag-set coverage (title / meta description / Open Graph / Twitter Card / supporting tags) adapted from the upstream skill. Upstream coupling to `memory/content/`, `memory/hot-cache.md`, `memory/open-loops.md`, the CORE-EEAT alignment check, the cross-skill "next step" routing to `schema-markup-generator`, and the multi-language preset list are not carried over. Procedure, safety constraints, and output contract are rewritten for this collection's single-file skill format.
37
+
38
+ ## kimodo-motion
39
+
40
+ - **Sources:**
41
+ - kimodo.cpp by the LocalAI team — https://github.com/localai-org/kimodo.cpp (commit `ed8a931`): the key-pose patch modifies its sources; the SOMA30 joint names, parents and offsets in `scripts/kimodo_motion.py` are copied from its `scripts/export_glb.py`.
42
+ - Kimodo by NVIDIA — https://github.com/nv-tlabs/kimodo: the constraints JSON format and the full-body/end-effector conditioning the patch follows; the skeleton definitions kimodo.cpp copied.
43
+ - **License:** Apache License 2.0 (kimodo.cpp and NVIDIA Kimodo code). Model weights are not included; they carry the NVIDIA Open Model License and the Meta Llama 3 Community License.
44
+ - **Nature of derivation:** The patch adds key-pose constraint input to kimodo.cpp's native generator. Generation helpers, gates, residual easing, sheets and the Blender scripts are original to this collection.
@@ -0,0 +1,60 @@
1
+ ---
2
+ name: astro-preview
3
+ description: Open and verify local project assets in Astro Preview when a user needs browser previews of images, sound, Blender/3D models, animations, local HTML/Vite or comparison analysis. Use the existing viewer rather than creating a project-specific preview app.
4
+ ---
5
+
6
+ ## Scope
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
11
+
12
+ - Astro Preview is a local TypeScript server and browser application. The consumer supplies its checkout path as `ASTRO_PREVIEW_DIR` or in project context; do not assume a personal filesystem path or a published npm package.
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.
21
+
22
+ 1. Locate the actual output files and select the smallest useful project roots. Prefer generated asset folders over registering the entire repository. Keep the project name stable and use absolute paths.
23
+ 2. Reuse a running Astro Preview instance if its page loads and it uses the intended catalog. Otherwise run `npm --prefix "$ASTRO_PREVIEW_DIR" run dev` in a managed terminal, then open `http://127.0.0.1:4174`. For an existing build use `npm --prefix "$ASTRO_PREVIEW_DIR" start`. Respect configured `VIEWER_PORT` and use the exact loopback address. Record the process handle and stop only a process this task started when it is no longer needed.
24
+ 3. Register the named project idempotently:
25
+
26
+ ```sh
27
+ node "$ASTRO_PREVIEW_DIR/bin/viewer.mjs" project add "Project name" --root /absolute/outputs --root /absolute/references --json
28
+ node "$ASTRO_PREVIEW_DIR/bin/viewer.mjs" project show "Project name" --json
29
+ ```
30
+
31
+ CLI and server must share `VIEWER_DATA_DIR` when it is configured. Existing roots remain; do not remove them merely to match the example. For reading operations, use a listed project ID if a name is ambiguous. If named-root registration encounters duplicate names, halt that operation and request a unique name or explicit selection through the viewer; IDs are not accepted in place of the name by `project add --root`. Listing or scanning is available through `project list`, `asset list` and `project scan` with `--json`. After CLI registration or other catalog changes, reload or navigate the viewer page before selecting the project; an already open empty catalog does not subscribe to project updates.
32
+ 4. Generate a stable viewer link when useful:
33
+
34
+ ```sh
35
+ node "$ASTRO_PREVIEW_DIR/bin/viewer.mjs" open "project-id" "asset-id-a" "asset-id-b" --layout 2 --json
36
+ ```
37
+
38
+ Open the returned URL with the browser tool. Omit assets/layout for a project link. `--json` emits the URL without launching a browser; it does not start the server. Assets accept IDs or unambiguous root-relative paths. Use Copy preview link for the current ordered layout, including comparisons across projects. Links require the same local catalog; they capture project/assets/layout, not full camera, assembly or playback state. If a stale ID/path fails, inspect the current catalog and report the missing asset rather than inventing an ID.
39
+ 5. Open the project's explorer or gallery and choose the relevant files. Use image zoom/pan for screenshots, waveform/playback/seek/loop for sound, and model camera/wireframe/parts/animation controls for 3D. Use 2–6 comparison slots for models, images or sound, including assets from different projects; linked cameras apply to 3D. Compatible animation libraries and assembly controls preview rigs/parts without modifying their sources. For requested motion comparisons where playable clips are available, select a playable clip in each model slot, then enable Linked animations for shared time/play/pause/seek/speed/loop; each slot keeps its local clip selection. Use Front/Rear/Left/Right/Top, Skeleton and Bounds for inspection. Verify that playback advances in every relevant slot; incompatible clips remain unavailable.
40
+ 6. For exactly two sound assets use Audio A/B and verify switching at the current position. RMS matching attenuates the louder PCM recording; silent inputs cannot be matched. For exactly two same-size images use Pixel difference: first frame/page, up to 8 MP, visible RGBA comparison with alpha-weighted RGB. Report changed-pixel count/percentage and the heatmap.
41
+ 7. For requested HTML/Vite web apps use Project previews: reuse the intended profile or add one with an authorized root, HTML entry file or Vite directory, then Start and Open preview. HTML uses a separate capability-protected local origin. Stable viewer links never start profiles. Stop only a runtime this task started when it is no longer needed. If Vite is absent, halt that launch and continue supported previews.
42
+ 8. After generating or changing assets, wait for live refresh and verify the changed viewer. Use Refresh for exports that preserve size/mtime. Verify the real browser result with the available browser tool: rendered image/model or HTML/Vite page, loaded clip, or audio playback state and duration. A successful API response or screenshot alone does not prove sound is audible or animation plays; report what was actually checked. Preserve useful workspace tabs and view state for the user.
43
+
44
+ ## Boundaries
45
+
46
+ - Previewing and registering folders authorizes local catalog/cache changes. Asset viewers keep source assets read-only. Reviews decisions, comments, archive and deletion write review state/media; perform those only when explicitly requested.
47
+ - Starting Vite executes the project's config/plugins on the host: they can write caches/files or use networking. Launch only the user's intended trusted project; this is not sandboxed Blender or Reviews HTML. Vite’s resource port uses its own dev-server access controls rather than Astro Preview’s API/capability session. The viewer controls its own runtime process, not arbitrary existing project processes.
48
+ - Keep the server on loopback. Do not upload assets, publish the app or replace a user's running process as part of opening a preview.
49
+ - GLB/glTF preserve rigs, morphs and clips; their external dependencies must remain inside configured roots. Add an intended sibling asset root when authorized; do not weaken path validation or fetch remote model dependencies.
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.
52
+
53
+ ## Output Contract
54
+
55
+ Emit `Skill: astro-preview - output below`, then state:
56
+
57
+ - Viewer URL and whether the server was reused or started.
58
+ - Registered project name/ID and roots.
59
+ - Assets/view mode, optional profile/runtime URL, and observed rendering, playback or comparison metrics.
60
+ - Relevant limitations, missing prerequisites or unverified playback/rendering.
@@ -0,0 +1,101 @@
1
+ ---
2
+ name: kimodo-motion
3
+ description: Generate humanoid animation clips locally with NVIDIA Kimodo (native kimodo.cpp build) from a text prompt, optionally starting and ending in given poses (key-pose constraints taken from a rig's existing clips), check them numerically and visually on Kimodo's own skeleton, and retarget them onto a Mixamo-named Blender rig. Use when a clip nobody provides is needed (a draw, a gesture, a transition between two existing poses); not for editing captured clips or for finger animation.
4
+ ---
5
+
6
+ # Kimodo Motion
7
+
8
+ ## Scope
9
+
10
+ - Text-to-motion takes on Kimodo's SOMA30 skeleton, several seeds per prompt, with optional start/end key poses
11
+ taken from a rig's own clips, so a take starts and ends where the neighbouring clips do (no cut/settle/blend).
12
+ - Numeric gates (key-pose error), frame sheets for a reviewer, a bake onto a Mixamo-named rig with a direction check.
13
+ - Out of scope: fingers and props (Kimodo has neither), mid-clip keys (the patch reads `end-effector` keys on any
14
+ frame; `generate` keys only the ends), root2d paths (not supported), engine integration, loop clips.
15
+
16
+ ## Prerequisites
17
+
18
+ - [kimodo.cpp](https://github.com/localai-org/kimodo.cpp) at `ed8a931` (Apache-2.0) with
19
+ `<skill>/patches/kimodo-cpp-keyposes.patch` (`git apply`). It adds `kmd-generate ... --constraints FILE`, which reads
20
+ upstream Kimodo's constraints JSON (`fullbody`, `end-effector`, `left/right-hand/foot`). Build (C++23, CMake 3.25+;
21
+ verified CPU-only on macOS, Vulkan per its README on Linux):
22
+ `cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DKIMODO_ENABLE_VULKAN=OFF -DKIMODO_BUILD_TESTS=OFF && cmake --build
23
+ build --target kmd-generate`. Verify: `build/kmd-generate` prints a usage line with `--constraints`.
24
+ - Models: `scripts/download_gguf_weights.sh --output "$PWD" --model soma-rp-v1.1` (needs the `hf` CLI). Keep the
25
+ NVIDIA Open Model License and Meta Llama 3 notices. Verify: `ls "$KIMODO_ROOT"/models/*.gguf` shows the
26
+ motion and text files the defaults (or `KIMODO_MOTION_GGUF` / `KIMODO_TEXT_GGUF`) name.
27
+ - Environment: `KIMODO_ROOT` (that checkout); `KIMODO_GENERATE`, `KIMODO_MOTION_GGUF`, `KIMODO_TEXT_GGUF` when they
28
+ differ from the defaults in `<skill>/scripts/kimodo_motion.py` (relative to `KIMODO_ROOT` or absolute);
29
+ optional `KIMODO_EXPORT_GLB` (its `scripts/export_glb.py`: a skeleton GLB per take).
30
+ - [Python 3.10+](https://www.python.org/downloads/), standard library; sheets need Pillow
31
+ (`python3 -m pip install Pillow`, verify `python3 -c "import PIL"`).
32
+ - Key poses and retargeting: [Blender](https://www.blender.org/download/) 4.x/5.x, `BLENDER` = its executable.
33
+ Verify: `"$BLENDER" -b --factory-startup --version`, then `BLENDER=... python3 -m unittest discover -s
34
+ <skill>/tests -v` (the round trip skips without `BLENDER`).
35
+
36
+ ## Inputs
37
+
38
+ - Prompt, length `F` in frames (30 fps), seeds (3-4), output dir; for key poses: the rig `.blend` (one armature,
39
+ Mixamo names with prefix `mixamorig:` unless `--prefix` says otherwise, facing -Y) and the clips whose poses start
40
+ and end the take (action-only `.blend` files, with a frame).
41
+
42
+ ## Procedure
43
+
44
+ `<skill>` is this skill's installed folder; commands run from the consumer project.
45
+
46
+ 1. Spec before generating: the prompt (one short sentence of what the body does; wording about the end state made
47
+ takes start in it), `F`, seeds, start/end poses, acceptance (the gates below, the content a reviewer must see).
48
+ 2. Key poses: `python3 <skill>/scripts/kimodo_motion.py keypose --rig RIG.blend start=IDLE.blend end=HOLD.blend
49
+ --out POSES.json [--prefix P]`. It inverts the retarget's bone map and rest alignment and fails above 3 deg on
50
+ any mapped bone's direction. It moves the root so the lower toe stands at Kimodo's toe height (`--toe-y`,
51
+ 0.015 m). Regenerate the poses whenever a source clip is re-baked.
52
+ 3. Generate: `python3 <skill>/scripts/kimodo_motion.py generate --prompt "..." --frames F --seeds 1,2,3,4 --start
53
+ POSES.json:start --end POSES.json:end --out DIR --name k1`. Defaults:
54
+ - each key is held 3 frames (`--hold`): a single key let the take leave a still pose at full speed;
55
+ - hands and feet keep their turn (`end-effector`; `--no-effectors` turns it off): positions alone left the
56
+ hands 24-39 deg off;
57
+ - the model's residual on its keys (about 19 mm mean, up to about 5 cm at finger ends) is eased out over 0.3 s
58
+ (`--post`) as an offset, not a blend toward the static key (that moved joints 14-20 cm mid-motion). The
59
+ model's own take stays in `raw/`.
60
+ 4. Numeric gates, per take, in `keypose_error.json`:
61
+ - the model's own take: mean joint error at most 30 mm on every key frame (`check DIR/k1_s1 --model` re-runs it);
62
+ - after post: at most 5 mm on any joint (`check DIR/k1_s1` re-runs it);
63
+ - known-bad: the same prompt and `F` without `--start/--end` (`--name k1n --seeds 1`) must FAIL
64
+ `check DIR/k1n_s1 --model --constraints DIR/k1_s1/constraints.json` (measured: 79-289 mm). If it passes, the
65
+ gate is broken: stop.
66
+ 5. Sheets for a fresh-context reviewer or the user, never the agent that generated the takes:
67
+ - phases: `sheet DIR/k1_s* DIR/k1_s1/raw DIR/k1n_s1 --keys DIR/k1_s1/constraints.json --out phases.png`;
68
+ - every frame of both junctions: `--span 0:10` and `--span F-11:F-1` (75 frames: `64:74`).
69
+ Ask for: start and end on the grey keys, pops where a hold releases, and whether the motion reads as the prompt.
70
+ Drop takes that do something else (a seed that does the end action first keeps doing it). Take at most two
71
+ rounds of new seeds or prompts; after that, ask the user. Mark the chosen take in `provenance.json` (`used_as`).
72
+ 6. Retarget the chosen take: `"$BLENDER" -b RIG.blend --factory-startup --python-exit-code 1 --python
73
+ <skill>/scripts/kimodo_retarget.py -- retarget --clip NAME=DIR/k1_s3 --out CLIPS.glb --report report.json
74
+ [--prefix P]`. Every mapped bone's world turn is copied and only the hips move. Above 3 deg on any bone's
75
+ direction it writes the report and no GLB. Fingers, props and contact fixes belong to the consumer project.
76
+ `stats` gives the right hand's closest approach to the hip, for draw or reach clips.
77
+
78
+ ## Boundaries
79
+
80
+ - Write takes into new dirs (`generate` refuses existing ones). Keep `provenance.json` (seed, command, keys) for
81
+ AI-content disclosure. Models, licences and machine paths stay outside the skill.
82
+ - Where a hold releases, the residual offset can add a one-frame step of about 2 cm. Measure the largest per-frame
83
+ joint step in the junction strips against `raw/` and report it. Do not hide it.
84
+
85
+ ## Stop Conditions
86
+
87
+ - `kmd-generate` lacks `--constraints` (unpatched build) or a model file is missing: stop and report.
88
+ - `keypose` or `retarget` fails its direction gate, or reports missing bones: the rig's names, prefix or rest differ
89
+ from the map. Stop; do not loosen the 3 deg tolerance.
90
+ - The known-bad passes the model gate, every take fails it, or all takes are rejected after two rounds: report the
91
+ numbers and sheets to the user.
92
+
93
+ ## Output Contract
94
+
95
+ Skill: kimodo-motion - output below
96
+
97
+ | Take | Model mean / max (mm) | After post max (mm) | Post move (mm) | Hold-release step vs raw (mm/frame) | Content verdict | Use |
98
+ | --- | --- | --- | --- | --- | --- | --- |
99
+
100
+ Followed by: the poses file, the take dirs, the known-bad result, the sheet paths, the reviewer's verdict, and the
101
+ retarget report (worst direction per clip) when baked.
@@ -0,0 +1,4 @@
1
+ interface:
2
+ display_name: "Kimodo Motion"
3
+ short_description: "Text-to-motion clips with Kimodo, start/end key poses, retarget"
4
+ default_prompt: "Use $kimodo-motion to generate a clip from a prompt that starts and ends in my rig's poses, check it and retarget it."