realpython/materials/extract-behavior
- community
Checking that the SKILL.md file is still in the repository.
Extracts the intended behavior of a Python module or package
Install
npx vskill@latest install realpython/materials/extract-behaviorSKILL.md
Extract Behavior
Extract the intended behavior of $ARGUMENTS into BEHAVIOR.md.
Steps
- Collect the target modules:
- If
$ARGUMENTSis a.pyfile, the target is that module. - If it's a directory, the targets are all
.pyfiles under it,
recursively, in path order. Skip test files and files whose names start with an underscore (_).
- Carefully read the package that contains the targets and map it: list
each module's public callables, their parameters, branches, error paths, and external dependencies.
- For each target module, write its section group in
BEHAVIOR.mdat
the project root. Start the group with a ` # <module path> ` heading, then write one section per public callable. Include every decision point, boundary, error, and edge case. Replace any existing group for the module, and leave the other groups alone.
- Report the modules and sections you wrote, and every row marked
NEEDS REVIEW.
Don't write tests or edit any code.
Template
Use this template for every section:
## <callable>(<parameters>)
<One sentence on what the callable returns or does.>
Source: <docstring, comment, or requirement>.
| <parameter> | expected | note | |
|---|---|---|---|
| <value> | <exact return value> | boundary | |
| <value> | raises <Error>: "<full message>" | error |
Rules
- Add one column per parameter. For stateful code, add a
givencolumn
first to record the starting state.
- One row per case. Write boundaries as concrete rows on both sides,
never as ranges.
- Start each note with happy, boundary, edge, or error.
- Mark values inferred only from the implementation as NEEDS REVIEW.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingai-python-test-generation/bookstore-project/.claude/skills/extract-behavior/SKILL.md
Popularity
- Repository stars
- 5,219
- Repository forks
- 5,264
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/realpython/materials/extract-behavior)