Skill: Itzamna Project Operations
Purpose: provide an agent-safe, human-gated workflow for initializing, validating, and minimally updating Itzamna-related project metadata and CLI files.
Who benefits: automation engineers, Copilot/Cli agents, maintainers coordinating agent workflows in this repository.
Use when: an agent needs to verify Itzamna installation, sync CLI files with
Itzamna protocol, or propose initial content for .context/ and .itzamna/memory.md.
Core ideas (distilled)
- •Treat
.itzamna/and.context/as authoritative agent configuration and short-term memory; they must not be modified without explicit human approval (Human Gate). - •Do not overwrite CLI-generated files (AGENTS.md, CLAUDE.md, GEMINI.md,
.cursorrules). Non-destructive appends referencing Itzamna are allowed when the human approves. - •When proposing content for
.context/*or.itzamna/memory.md, always present a draft and wait for approval before writing.
Instructions (step-by-step)
- •
Verify installation (read-only):
- •Confirm presence of these files under
.itzamna/:- •
kernel.md,constitution.md,memory.md, andtemplates/withskill-template.md,agent-template.md,quality-checklist.md,cli-compatibility.md.
- •
- •Confirm
.context/containsproject.md,tech.md,rules.md. - •Confirm
.specify/and./.gemini/skills/if present (spec-kit and gemini skills).
- •Confirm presence of these files under
- •
Report findings to the human with concise status (OK | MISSING | NEEDS ACTION).
- •
CLI file sync policy:
- •If a CLI file exists (e.g.,
GEMINI.md,AGENTS.md,CLAUDE.md,.cursorrules) and it does not reference Itzamna, ASK the human whether to append a short Itzamna block. - •If human approves, append the Itzamna reference at the END of the file (do NOT overwrite).
- •If human rejects or does not respond, do nothing.
- •If a CLI file exists (e.g.,
- •
Proposing
.context/content:- •If
.context/*contains placeholders or templates, produce a proposed draft by analyzing README, docs, build files, and module layout. Present the draft to the human and await approval. - •On approval, write each file separately and show the diff/preview before committing.
- •If
- •
Proposing
.itzamna/memory.mdcontent:- •If
.itzamna/memory.mdappears empty or templated, build a short-term memory proposal (project name, stack, current status, next steps). Present for approval. - •On approval, append or replace only the templated sections (do not erase unrelated notes).
- •If
- •
MEMORY.md(root) checks:- •If
MEMORY.mdis missing, propose creating it (long-term memory); present template and request approval. - •If present, do not modify without explicit instructions.
- •If
- •
Final report:
- •Produce a single concise report summarizing the status of
.itzamna/,.context/,MEMORY.md, and CLI files and listing the actions taken and edits proposed.
- •Produce a single concise report summarizing the status of
Examples (agent dialog style)
- •
Detect CLI file without Itzamna reference:
- •Agent: "Detectei GEMINI.md sem referencia ao Itzamna. Posso adicionar um bloco de integracao Itzamna ao final do arquivo?"
- •Human: "Sim"
- •Agent: Append Itzamna block; report file path and diff.
- •
Propose
.context/project.mdcontent:- •Agent: ".context/project.md parece conter placeholders. Posso analisar o repo e propor um preenchimento?"
- •Human: "Sim"
- •Agent: Presents draft (shows diffs); Human approves; Agent writes file and reports.
Quality checklist (auto-crítica guidance)
- • Read-only checks first: always report findings before proposing writes.
- • Human approval recorded in the action log before any write occurs.
- • Never overwrite CLI-generated files; only append with consent.
- • Proposals include diffs and clear rationale.
- • All edits are minimal and localized.
- • References to
.itzamna/docs and templates are included in proposals.
References
- •Project Itzamna templates:
.itzamna/templates/skill-template.md,.itzamna/templates/quality-checklist.md - •Itzamna memory:
.itzamna/memory.md - •Project agent docs and skills:
.gemini/skills/ - •Project architecture:
docs/ARCHITECTURE.md
End of skill: present this SKILL.md to the human and await approval to persist into other CLI-specific directories as needed.