kairos-code
kairos-code
Run the ELITE AI CODING STANDARDS protocol via KAIROS. The protocol is bundled in references/KAIROS.md. If it is not yet installed in your KAIROS space, mint it first, then run it.
Versioning
- Skill version: In frontmatter above (
metadata.version). Bumped when the skill instructions or protocol reference change. - Protocol version: In references/KAIROS.md frontmatter (
version). Bumped when the protocol steps or challenges change.
Workflow
- Search — Call
kairos_searchwith queryELITE AI CODING STANDARDS code(or the user’s phrasing, e.g. "ai coding rules"). Use thespaceparameter if the user or environment specifies one; otherwise omit (default space). - If no strong match (e.g. no choice with
score≥ 0.5) — Pick the refine choice from the response and run that protocol to improve the query, then search again. Do not mint or run a weak match. - If no match — Read references/KAIROS.md. If it has YAML frontmatter (lines between
---), pass only the markdown after the closing---tokairos_mintso the document starts with the H1. Use the same space as for search. Then search again. - If match but stored protocol is outdated — Read the
versionfrom references/KAIROS.md frontmatter. Compare with the match choice’sprotocol_version. If the bundled version is newer (e.g. semver) or the stored protocol has noprotocol_version, callkairos_mintwith the full protocol document andforce_update: true(and optionalprotocol_versionfrom frontmatter), then search again and proceed with the chosen match. - Run — Follow the chosen match’s
next_action:kairos_begin→kairos_next(loop) →kairos_attest. Echo nonces and proof hashes from the server. Do not respond to the user beforekairos_attestwhenmust_obey: true.
Protocol summary
More from debian777/kairos-mcp
kairos
>-
50kairos-install
>-
18kairos-bug-report
>-
13kairos-ai-docs
Find and run the zero-drift minimal template for writing AI instructions via KAIROS. Use when the user invokes /ai-docs or asks to write, generate, or update AI instructions using the zero-drift template.
7kairos-create-skill
Run the KAIROS protocol for creating a KAIROS skill (Agent Skill with optional references/KAIROS.md or multiple references/KAIROS-{alias}.md protocols). Use when the user wants to create a KAIROS skill, create a skill with a KAIROS protocol, write SKILL.md, or asks about skill structure and Agent Skills format (agentskills.io).
7kairos-create-protocol
Run the KAIROS "Create New KAIROS Protocol Chain" protocol. Use when the user invokes /k create new protocol, or asks to create a new protocol, mint a workflow, or build a protocol (when kairos_search found no match and user confirms).
7