Skip to content

Commit 85241cc

Browse files
Explain how to maintain docs in agent skills (#1435)
1 parent 9305f2e commit 85241cc

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

  • .agents/skills/usethis-python-code-modify

.agents/skills/usethis-python-code-modify/SKILL.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,16 @@ description: Modify Python code (e.g. refactor, add new code, or delete code)
44
compatibility: usethis, Python, pytest
55
license: MIT
66
metadata:
7-
version: "1.0"
7+
version: "1.1"
88
---
99

1010
# Modifying Python code
1111

1212
## Procedure
1313

1414
1. Run a subset of the tests for `src/<module>` regularly from the parallel module in the `tests/<module>` directory. Never run the entire test suite.
15-
2. After finishing your modifications, run the static checks (e.g. `usethis-qa-static-checks`) to check for any issues.
15+
2. After finishing your modifications, check if documentation needs updating.
16+
3. After finishing your modifications, run the static checks (e.g. `usethis-qa-static-checks`) to check for any issues.
1617

1718
## Run a subset of tests regularly
1819

@@ -31,6 +32,16 @@ There are two reasons why tests might fail:
3132

3233
In the first case, update the tests to have the correct expectations, or perhaps remove the test entirely. In the second case, fix the bug in the code.
3334

35+
## Check if documentation needs updating
36+
37+
When you modify code, check whether the change affects areas that are documented in `CONTRIBUTING.md`, `README.md`, or `docs/`. If so, update the documentation to reflect the change.
38+
39+
### Areas needing special attention
40+
41+
- **Guides in CONTRIBUTING.md**: The "Guides" section in `CONTRIBUTING.md` documents step-by-step processes for common tasks like adding a new tool or adding a new badge. If your change modifies the classes, functions, or patterns described in these guides (e.g. `Tool`, `ToolSpec`, `ConfigSpec`, `use_*` functions, `typer` commands, badge functions), read the relevant guide and check whether it still accurately describes the current code. Update it if not.
42+
- **Conventions in CONTRIBUTING.md**: The "Conventions" section documents project-wide conventions (e.g. `plain_print` instead of `print`, branding rules). If your change introduces a new convention or modifies an existing one, update this section.
43+
- **README.md**: If your change adds, removes, or renames CLI commands or tool integrations, update `README.md` to reflect this.
44+
3445
## Run static checks after finishing modifications
3546

3647
After finishing your modifications, run the static checks (e.g. `usethis-qa-static-checks`) to check for any issues before merging.

0 commit comments

Comments
 (0)