AchillesCLI is a layered terminal tool: a thin CLI shell orchestrates LLM-backed skills, plans, and a managed `.specs` workspace. The flow mirrors GAMP: URS → FS/NFS → DS → Tests, with a DS per file as the technical source of truth.

Runtime layers

Data directories

Key flows

  1. Bootstrap: detect `.specs`; if missing, create URS/FS/NFS skeletons, DS/, ignore list.
  2. Task intake: user enters free text or commands; LLM planner emits skill steps; user may confirm.
  3. Execution: skills run with context (workspace, specsRoot, memories, language contract); actions update specs.
  4. Memory & Resume: summaries routed to global/user/session; pending plans persisted in-process for /resume.
  5. Spec publishing: `GampRSP.generateHtmlDocs()` renders html_docs for browsing; docs/specs mirrored for static docs.

LLM & skills

AchillesCLI wraps LLMAgent (fast/deep modes, cancellation, debug logging) and executes local skills discovered under .AchillesSkills (workspace or CLI bundle). The planner prefers orchestrator skills for high-level tasks and warns when none exist.

Installed skills (type: oskill1)

1oskill: orchestrator-type skill that plans and coordinates other skills; it does not answer the prompt directly.

Execution in practice (iterative spec cycle)

You can compose the existing skills to build and refine specs end-to-end, including backtracking:

  1. Draft specs: run update-specs with your change request to create/adjust URS/FS/NFS/DS and file impacts.
  2. Preview: use generate-summary to generate a non-mutating summary and inspect the changes.
  3. Regenerate code/tests: if the DS looks good, run build-code to materialize files and scaffold FS/NFS test suites.
  4. Backtrack/refine: if the preview or generated files aren’t what you want, run sync-specs to re-sync specs from code or rerun update-specs with revised instructions (e.g., new constraints or different file impacts).
  5. Repair loops: if tests/code drift, use fix-tests-and-code to iterate run-tests + build-code until stabilized.
  6. Review and mentor: call spec-review for findings and spec-mentor for educational guidance before finalizing.
  7. Publish: regenerate docs with generate-docs to update HTML outputs, or run-tests to validate suites.