grace-init
Initialize GRACE framework structure for this project.
Template Files
All documents MUST be created from template files located in this skill's assets/ directory.
Read each template file, replace the $PLACEHOLDER variables with actual values gathered from the user, and write the result to the target project path.
| Template source | Target in project |
|---|---|
assets/AGENTS.md.template |
AGENTS.md (project root) |
assets/docs/knowledge-graph.xml.template |
docs/knowledge-graph.xml |
assets/docs/requirements.xml.template |
docs/requirements.xml |
assets/docs/technology.xml.template |
docs/technology.xml |
assets/docs/development-plan.xml.template |
docs/development-plan.xml |
Important: Never hardcode template content inline. Always read from the
.templatefiles — they are the single source of truth for document structure.
Steps
-
Gather project info from the user. Ask for:
- Project name and short annotation
- Main keywords (for domain activation)
- Primary language, runtime, and framework (with versions)
- Key libraries/dependencies (if known)
- High-level module list (if known)
-
Create
docs/directory and populate documents from templates:For each
assets/docs/*.xml.templatefile:- Read the template file
- Replace
$PLACEHOLDERvariables with user-provided values - Write the result to the corresponding
docs/path
-
Create or verify
AGENTS.mdat project root:- If
AGENTS.mddoes not exist — readassets/AGENTS.md.template, fill in$KEYWORDSand$ANNOTATION, and write to project root - If
AGENTS.mdalready exists — warn the user and ask whether to overwrite or keep the existing one
- If
-
Print a summary of all created files and suggest the next step:
"Run
$grace-planto start the architectural planning phase."