25 lines
1.1 KiB
Markdown
25 lines
1.1 KiB
Markdown
---
|
|
name: Pytest Scaffolding Guidance
|
|
description: Use when working under tests/. Route test edits to pytesting guidance and never create or expand tests unless the user explicitly asks.
|
|
applyTo: 'tests/**'
|
|
---
|
|
|
|
When editing files under `tests/`, use `skill://pytesting/SKILL.md` as the primary guidance source for test scaffolding and pytest authoring decisions.
|
|
|
|
Hard rule:
|
|
|
|
- Do not create new test files, test cases, or test scaffolding unless the user explicitly asks for tests in the current request.
|
|
- If tests could help but were not requested, mention them as an optional next step instead of adding them.
|
|
|
|
Execution pattern:
|
|
|
|
1. Load `skill://pytesting/SKILL.md` first.
|
|
2. Inspect `skill://pytesting/_manifest` only when a supporting reference is needed.
|
|
3. Apply only the portions relevant to the file being edited.
|
|
4. Keep tests focused, deterministic, and aligned with repository conventions.
|
|
5. Include source-document links for any feature-level recommendation.
|
|
|
|
If task intent is ambiguous, ask one clarifying question before editing.
|
|
|
|
Be sure to also refer to the [testing page](../../src/personal_mcp/docs/testing.md) for design detail.
|