faf_init
Create a portable project context file that stores stack, structure, and intent, so Grok can instantly understand your project each session without re-discovery.
Instructions
Create a project.faf — the IANA-registered context file (application/vnd.faf+yaml) that gives Grok persistent project DNA (stack, structure, intent) in one portable file, so an agent reads the whole project cold each session instead of re-discovering it. Writes project.faf to the target directory (created if missing) and refuses to overwrite an existing context file unless force is set. Run once at project start, or with force to regenerate, then call faf_score to check readiness. Returns a text confirmation with the written file path and the detected project type.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Alias for `directory`; takes precedence if both are supplied. | |
| force | No | Overwrite an existing project.faf. Default false: if a context file already exists, faf_init refuses and leaves it untouched. | |
| directory | No | Absolute or ~-relative project directory to initialize; created if it does not exist. Defaults to the current working directory. | |
| projectName | No | Project name used to resolve the directory via the Projects convention when no directory/path is given. |