metaphor/marketplace

skill · built into metaphor

/python

Python/pathlib idioms and pytest habits

  • Built in
  • Slash command
try it

you ›/python

metaphor ›Loaded the python 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, idiomatic changes that match the project's packaging and test runner.

Idioms

  • Follow existing style (formatter/linter already in the repo: ruff, black, etc.).
  • Prefer type hints where the surrounding module uses them.
  • Keep imports sorted and avoid unused dependencies.
  • Use pathlib for filesystem paths when peers do.

Testing

  • Add tests next to existing pytest/unittest layout.
  • Prefer temp directories for file I/O tests; clean up after.

Safety

  • Never write secrets, API keys, or credentials into the tree.
  • Avoid eval/exec on untrusted input.
  • Proposed edit paths must be repo-relative.

Questions

What is the python skill?

Python/pathlib idioms and pytest habits

How do I use python in Metaphor?

It is built into Metaphor. Type /python 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