| name | project-capsule |
| description | Pack a module or directory into one markdown or YAML file. Unpack YAML back to a directory. Harvest code listings from a book, article, or tutorial. Generate a complete runnable companion as FullContentYAML. Use when the user says import/pack/capture a slice of the repo, dump a folder to one file, harvest examples from a post, or generate a chapter example. Wraps create_project_markdown and yaml_project.
|
| metadata | {"short-description":"Pack a module. Harvest a doc. Generate a runnable example."} |
Project Capsule (Grok Build)
Same contract as the shared skill. Read commands.md, formats.md,
install.md, from-document.md in this folder (copy them from
skills/project-capsule/).
You run in a sandbox. Install the Python tools if they are missing, resolve
the smallest slice that matches the user's words, then pack or unpack.
When the user says: import the login module to a single markdown file
- Find login-shaped paths in the workspace
- Include sibling files in those directories
- Remember create-project-markdown
--include matches basename only
create-project-markdown src/auth -o login.md (or a basename regex of siblings)
- Report the output path and file count
When the user points at a book, article, tutorial, or any doc with listings:
- Read
from-document.md
- Harvest fences if they exist, or generate a companion project if they asked
for a working example
- Write FullContentYAML, then
yaml-project apply create if they want a tree