AI Skill Index
This page is written as an index for a future AI skill. It is not the skill itself. Use it as the stable map of concepts, files, commands, and docs pages an agent should read before acting in a Cohesive Code workspace.
Detection
Section titled “Detection”A Cohesive Code workspace usually has:
ccode.yamlat or near the project root- a
ccode_pathdirectory, defaulting toccode - generated support files under
<ccode_path>/.ccode/lib/ - optional accelerator state under
<hidden_path>/accelerators/
If ccode.yaml exists, read it before editing files.
Source of truth order
Section titled “Source of truth order”Use this order when references disagree:
- The generated local
Contexttype at<ccode_path>/.ccode/lib/context.ts - The current CLI implementation and command output
- This documentation
- Older README examples
Required reads by task
Section titled “Required reads by task”For initialization:
For authoring a process:
For OpenAPI generation:
- OpenAPI Workflows
- OpenAPI Docs
- External schema reference: OAI/OpenAPI Specification
- Runtime API
For accelerated artifacts:
Agent operating rules
Section titled “Agent operating rules”- Treat
ccode.yamlas the workspace contract. - Keep source files, templates, specs, and instructions under
ccode_path. - Do not hand-edit
.ccode/build/. - Do not edit
.ccode/lib/in an application workspace; rerunccode initto refresh it. - Run the exact process you changed when validation is possible.
- Use
ctx.generate(...)only for files that should be regenerated. - Use
ctx.accelerate(...)for files that may need human or agent adjustment. - Inspect unresolved accelerator work with
ccode list accelerated --for-agent. - Fetch one adjustment bundle with
ccode get accelerated <scopeId>:<artifactId> --instructions --for-agent.
Command index
Section titled “Command index”ccode init [path] --version <version>ccode run <process>ccode list accelerated [scopeId]ccode list accelerated [scopeId] --include-resolvedccode list instructionsccode list instructions --include-resolvedccode get accelerated <scopeId>:<artifactId>ccode get accelerated <scopeId>:<artifactId> --instructionsccode get instruction <path>Add --for-agent to list and get commands when the caller needs machine-readable JSON.
Runtime API index
Section titled “Runtime API index”ctx.println(message)ctx.setScope(scopeName)ctx.scope()ctx.renderTemplate(templatePath, data)ctx.generate(templatePath, filePath, data)ctx.accelerate(id, templatePath, data, instructionsPath?)ctx.parseJSONFromBytes(jsonBytes)ctx.parseJSONFromString(jsonString)ctx.parseJSONFromFile(filePath)ctx.parseOpenAPIFromBytes(specBytes)ctx.parseOpenAPIFromString(spec)ctx.parseOpenAPIFromFile(filePath)