self-discover
Zero-shot, self-discovering capability inventory. No training or warm-up — purely introspective: the agent reads its own configuration surface and reports what it can do.
When to Use
- Session start (bootstrap), or when explicitly asked "what can you do".
- Before planning a complex task, to know which tools and skills are available.
- When a task's required capability is uncertain.
Instructions
- Scan skills — read frontmatter
name+descriptionfrom~/.trae/skills/*/SKILL.mdand.trae/skills/*/SKILL.md. Record each skill's trigger conditions. - Scan MCP tools — call
tools/liston each declared MCP server in.trae/mcp.json. Record tool names and their one-line purpose. EXCLUDEnarrative-plannerfrom the analytical toolchain. - Scan rules — read frontmatter from
.trae/rules/*.md. Record which arealwaysApply, which aredescription-driven (intelligent), and their activation conditions. - Scan memory — read
~/.trae/memory/projects/{project}/project_memory.mdand.trae/memory/evolution-ledger.mdfor distilled rules. - Emit the inventory — a table with columns:
Capability,Source(skill/MCP/rule/memory + path),Trigger condition,Confidence(0.0–1.0 based on evidence completeness).
Output Contract
- Non-empty capability table; every row MUST trace to a real file or
tools/listresponse (no fabrication). - A short "Gaps" list: capabilities the task may need that are NOT currently discoverable.
Constraints
- Do NOT claim a capability whose source you did not read.
- Confidence is evidence-based; an unread source is
unverified, not0.9.