skill · built into metaphor
/typescript
TypeScript/Node idioms, surgical edits, vitest habits
- Built in
- Slash command
you ›/typescript
metaphor ›Loaded the typescript skill. What should I work on?
What the agent is told
This is the skill's SKILL.md, exactly what Metaphor reads before the task.
Prefer small, surgical edits over rewrites. Match existing module style (ESM vs CJS, import extensions).
Idioms
- Use
strictTypeScript; avoidanyunless the surrounding file already does. - Prefer
async/awaitand Node built-ins (node:fs/promises,node:path). - Keep public exports stable; do not rename APIs without updating callers.
- Colocate tests as
*.test.tsnext to or undertest/as the repo already does.
Testing
- Run the package vitest suite for touched packages.
- Prefer filesystem-safe temp dirs (
fs.mkdtemp) over writing into the source tree.
Safety
- Never commit secrets, API keys, or
.envcontents. - Do not weaken permission or four-eyes gates.
- Paths in proposed edits must be repo-relative; no absolute paths.
Questions
What is the typescript skill?
TypeScript/Node idioms, surgical edits, vitest habits
How do I use typescript in Metaphor?
It is built into Metaphor. Type /typescript in the composer, or describe the task and the agent loads the skill when it fits.
What is a skill?
A skill is a set of written instructions the agent reads before it starts a kind of task. It changes how the agent works, not what it is allowed to do.
More built-in skills
- /ai-ciSkillBudgeted investigation of failed GitHub Actions / PR checks — bootstrap annotations first, then failed logs, localize to code, classify flake vs real vs infraships with metaphor
- /ai-prSkillBudgeted whole-PR critique via the pr subagent — map diff, evidence findings, return a pr_review_draft for the Agent Review canvasships with metaphor
- /ai-securitySkillBudgeted security and AI-agent risk review — ai_security scan, OSV CVE/GHSA lookups, OWASP LLM/MCP/Top10 tagging, draft for Agent Review canvasships with metaphor
- /ai-sreSkillBudgeted production investigation against connected observability/logs MCP servers — scope, resolve schema, query, correlate, conclude with evidenceships with metaphor
- /boardSkillHow to work on the shared Board canvas — when to use it, locking onto one board, teaching with drawings, tool choice, placement, camera, narration and the…ships with metaphor
- /board-designSkillDesign language for the Board canvas — layout grid, hierarchy, roles and colour, typography, arrows, frames and patterns for common diagram typesships with metaphor