Skip to content

Latest commit

 

History

History
48 lines (34 loc) · 2.34 KB

File metadata and controls

48 lines (34 loc) · 2.34 KB

Card formats (MD-only)

This repository enforces a strict Markdown-only format for cards. YAML files are not used at runtime.

  • Project card (optional): agent/<Project>/project.md
  • Agent card (required per agent): agent/<Project>/<Agent>/agent.md
  • Prompt cards: prompt/ready/<Prompt>.md and prompt/draft/<Prompt>.md

All cards use fenced sections:

  • <!-- METADATA:START -->yaml … <!-- METADATA:END --> — required YAML block
  • <!-- PROMPT:START --> … text … <!-- PROMPT:END --> — optional body text for the agent/prompt

METADATA schema (recommended)

Prompts may include the following keys as needed (all optional but highly recommended for discoverability):

  • version: v1
  • id: <PromptId>
  • title: <Human title>
  • project: <ProjectName>
  • agent: <AgentName>
  • tags: []
  • engine: (example: openai)
  • orchestration: (example: llm)

Agent cards should include:

  • id: or name: (used as agent name)
  • aliases: [] (optional)
  • prompts: — list or map of prompt ids used by this agent (e.g., [DailyDigest, 33-Questioning])
  • Any runtime knobs (model, temperature, top_p, provider, tg, io, memory, chain, …)

PROMPT section contains only the text sent to the LLM. Keep runtime configuration in METADATA.

Strictness

  • Runtime API only reads paths from .cache/call/repo.db and accepts Markdown cards.
  • If a prompt card is selected but its METADATA block is missing/malformed, CLI --print-instructions returns a 400 BAD_CARD_FORMAT envelope.
  • Scanner logs warnings for .md prompts missing METADATA and still indexes them by filename; runtime paths remain strict.

Direct access helpers

  • call.lib.api.read(card_id) returns the stored Markdown exactly as written to the card column in repo.db.
  • call.lib.api.write(card_id, card_text) updates the database record first and then rewrites the filesystem path recorded in the row.
  • CLI (call read, call write) emit or consume plain text on success (JSON envelopes only appear on stderr when something fails).
  • The Actions API exposes /read/{id} (GET, text/plain) and /write/{id} (POST, text/plain body) so that updates propagate immediately without running the filesystem scanner.
  • MCP tools read and write reuse the same helpers and return plain text when successful, falling back to JSON error envelopes for exceptional cases.