realpython/materials/extract-behavior

Trust tier 3
  • community
Source check pending

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-behavior

SKILL.md

Extract Behavior

Extract the intended behavior of $ARGUMENTS into BEHAVIOR.md.

Steps

  1. Collect the target modules:
  • If $ARGUMENTS is a .py file, the target is that module.
  • If it's a directory, the targets are all .py files under it,

recursively, in path order. Skip test files and files whose names start with an underscore (_).

  1. 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.

  1. For each target module, write its section group in BEHAVIOR.md at

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.

  1. 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>expectednote
<value><exact return value>boundary
<value>raises <Error>: "<full message>"error

Rules

  • Add one column per parameter. For stateful code, add a given column

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/realpython/materials/extract-behavior/badge)](https://verified-skill.com/skills/realpython/materials/extract-behavior)

Something wrong with this skill or its page? Tell us.