Use before reporting that a change is complete
samugit83/cortex
- Latest recorded source activity
- SkillsMP catalog refreshed
- skills collected
- 33
- GitHub stars
- 1
- GitHub forks
- 0
Loading the repository README…
Skills in this repository
Showing 33 of 33 collected skills.
Use when a test fails after your change
Use after changing the parameters or return of a function
Use after finishing an edit, before moving on to the next one
Use at the start of any task, before making the first edit
Use before adding a new Python module to a package
Use before editing any Python file
Use before reporting that a change is complete
Use before writing your final answer to the user
Use when a change will touch more than one file
Use when a command you ran exits with a non-zero status
Use when you open a file you have not read before in this session
When adding a function other modules will call, annotate its parameters and return
When adding an import, keep the three standard blocks separated by a blank line
When a function body is wrapped in one broad conditional, invert it into a guard clause
When declaring a dataclass that carries values rather than state, make it frozen
When adding a logging call, pass the arguments to the logger instead of formatting first
When naming a boolean variable, parameter or attribute, phrase it affirmatively
When a loop's only job is to build a list, write it as a comprehension
When a function handles filesystem paths, build them with pathlib.Path
When raising an error, choose the narrowest built-in exception that fits
When a loop needs an index or walks two sequences together, use enumerate or zip
Before reporting a change as complete, add a CHANGELOG.md line when users can see the change
When adding a new export format to shop/plugins/, complete all four files an exporter needs
When code in shop/ needs the current date or time, read it through shop.clock
When changing amounts in shop/billing/, keep them integer cents and scale them with the rates helpers
When rotating a production signing key, follow the two-key overlap procedure
When editing a vendored third-party bundle, keep the upstream layout
When implementing user-visible features or fixes, remember to update CHANGELOG.md
When editing shop code, verify CHANGELOG.md is updated for user-visible changes
When implementing user-visible features or fixes, remember to update CHANGELOG.md
When editing shop code, verify CHANGELOG.md is updated for user-visible changes
When implementing a new exporter plugin in shop/plugins/, verify all four files are updated
Install with an AI assistant
Copy this prompt into the AI assistant you're using.
Follow https://skillsmp.com/skill-install/prompt.md to install Agent Skills from https://github.com/samugit83/cortex.