ontoref/reflection/migrations/0006-claude-agent-entrypoint.ncl

48 lines
1.6 KiB
Plaintext
Raw Normal View History

2026-03-29 00:19:56 +00:00
{
id = "0006",
slug = "claude-agent-entrypoint",
description = "Add Agent Entry-Point Protocol section to .claude/CLAUDE.md",
check = {
tag = "Grep",
pattern = "Agent Entry-Point Protocol",
paths = [".claude/CLAUDE.md"],
must_be_empty = false,
},
instructions = "
Add the following section to .claude/CLAUDE.md (insert before the last major section
or append at end). Create .claude/CLAUDE.md if it does not exist.
## Agent Entry-Point Protocol
When arriving at this project as an agent, execute these discovery steps in order
before any code changes:
# 1. Project capabilities — what this project has and can do
ONTOREF_ACTOR=agent ontoref describe capabilities
# 2. Available reflection modes — operational DAGs you can execute
ONTOREF_ACTOR=agent ontoref describe mode
# 3. Check migration status — apply any pending protocol migrations
ONTOREF_ACTOR=agent ontoref migrate list
# 4. Start a run before any structured work session
ONTOREF_ACTOR=agent ontoref run start <mode-id> --task \"description\"
# 5. Report each step as you complete it
ONTOREF_ACTOR=agent ontoref step report <mode-id> <step-id> --status pass|fail|skip
# 6. Verify mode completion
ONTOREF_ACTOR=agent ontoref mode complete <mode-id>
Graph output (Mermaid DSL, parseable):
ONTOREF_ACTOR=agent ontoref graph ontology
ONTOREF_ACTOR=agent ontoref graph deps
ONTOREF_ACTOR=agent ontoref graph flow
ONTOREF_ACTOR=agent ontoref graph <mode-id>
Justfile validation:
ONTOREF_ACTOR=agent ontoref validate justfile
",
}