Skip to main content

Module templates

Module templates 

Source
Expand description

Content templates for the claudex agent skill.

One shared markdown body is wrapped in target-specific frontmatter so each harness gets a header it understands:

  • Claude Code / Codex / Pi / OpenClaw: SKILL.md (YAML frontmatter + markdown)
  • AGENTS.md: plain markdown wrapped in idempotency markers
  • Claude Code plugin: plugin.json (JSON manifest, no frontmatter)

command_list is derived from the live clap command tree so the skill never drifts from the real CLI.

Enums§

Flavor
Frontmatter flavor for a generated SKILL.md.

Constants§

AGENTS_END
AGENTS_START
Markers bounding the claudex block inside a shared AGENTS.md, so the block is replaced in place rather than duplicated on re-runs.

Functions§

agents_block
Render the AGENTS.md block, wrapped in idempotency markers.
command_list
A concise, always-accurate list of top-level commands, derived from the clap command tree so it never drifts from the real CLI.
description
One-line skill description, reused by every frontmatter generator.
plugin_json
Render a Claude Code plugin manifest (.claude-plugin/plugin.json).
skill_md
Render a SKILL.md with target-specific frontmatter.