You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove skills directory and usethis-specific references from usethis-agents SKILL.md
Make the skill content generic: describe the one-source-of-truth
principle and AGENTS.md maintenance without usethis-specific examples
or embedding the skills directory table. Remove SKILL.md from
check-doc-sync args since it no longer has sync blocks.
Agent-Logs-Url: https://github.com/usethis-python/usethis-python/sessions/302a3e52-f9ad-432d-be31-b887e9ccb2f1
Co-authored-by: nathanjmcdougall <18602289+nathanjmcdougall@users.noreply.github.com>
Copy file name to clipboardExpand all lines: .agents/skills/usethis-agents/SKILL.md
+2-40Lines changed: 2 additions & 40 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,14 +17,7 @@ When providing reference material about code objects (functions, classes, module
17
17
18
18
Manually maintained reference material inevitably drifts out of sync with the code it describes. Docstrings live alongside the code, are reviewed during code changes, and can be mechanically extracted — ensuring the documentation always reflects reality.
19
19
20
-
### How it works in this project
21
-
22
-
-**Module tree**: `hooks/export-module-tree.py` scans Python modules, extracts the first line of each module docstring, and writes a formatted tree to `docs/module-tree.txt`. This is synced into `AGENTS.md` via `<!-- sync:docs/module-tree.txt -->` markers.
23
-
-**Skills directory**: `hooks/export-skills-directory.py` scans `usethis-*` skill directories, extracts the `name` and `description` from each `SKILL.md` frontmatter, and writes a formatted table to `docs/skills-directory.txt`.
24
-
-**Sync enforcement**: `hooks/check-doc-sync.py` verifies that content between `<!-- sync:path -->` markers in markdown files matches the referenced source file.
25
-
-**Skills documentation check**: `hooks/check-skills-documented.py` verifies that every skill directory is listed in `AGENTS.md`.
26
-
27
-
### Applying the principle
20
+
### How to apply the principle
28
21
29
22
When you need to add reference material about code to agent configuration:
30
23
@@ -47,35 +40,4 @@ Content between `<!-- sync:path/to/file -->` and `<!-- /sync:path/to/file -->` m
47
40
48
41
### Skills registry
49
42
50
-
The usethis-specific skills table in `AGENTS.md` must include every skill directory under `.agents/skills/` that starts with `usethis-`. The `check-skills-documented` hook enforces this. When creating a new skill, add it to the table (see the `usethis-skills-create` skill for the full procedure).
|`usethis-github-issue-create`| Create GitHub issues via the gh CLI to record lessons, track follow-up work, or file bugs discovered during development |
63
-
|`usethis-pre-commit`| Guidance on pre-commit hooks — this project uses prek, not pre-commit directly |
64
-
|`usethis-prek-add-hook`| Add a prek hook for dev |
65
-
|`usethis-prek-hook-bespoke-create`| Write bespoke prek hooks as Python scripts for custom project-specific checks |
66
-
|`usethis-python-code`| Guidelines for Python code design decisions such as when to share vs. duplicate code |
67
-
|`usethis-python-code-modify`| Modify Python code (e.g. refactor, add new code, or delete code) |
68
-
|`usethis-python-enum`| Style and testing conventions for working with Python enums |
69
-
|`usethis-python-functions`| Guidelines for Python function design, including return types and signature simplicity |
70
-
|`usethis-python-module-layout-modify`| Modify the Python module layout (create, move, rename, or delete modules) |
71
-
|`usethis-python-ruff`| Guidelines for complying with Ruff linter rules instead of suppressing them |
72
-
|`usethis-python-test-affected-find`| Identify tests that are potentially affected by code changes, to catch regressions before CI |
73
-
|`usethis-python-test-full-coverage`| Write tests that achieve full code coverage and verify coverage locally before pushing |
74
-
|`usethis-qa-import-linter`| Use the Import Linter software on the usethis project |
|`usethis-skills-create`| Create new agent skills (SKILL.md files) following best practices for content quality, structure, and discoverability |
77
-
|`usethis-skills-external-add`| Add an external (community) skill to the project from a third-party source, including installing it and documenting it in AGENTS.md |
78
-
|`usethis-skills-external-install`| Reinstall already-tracked external skills from skills-lock.json (e.g. after a fresh clone) |
The skills table in `AGENTS.md` must include every skill directory under `.agents/skills/`. The `check-skills-documented` hook enforces this. When creating a new skill, add it to the table (see the `usethis-skills-create` skill for the full procedure).
0 commit comments