chore: plugin hygiene — .gitignore Python ignores + __pycache__ cleanup #3

Merged
sdk-lead merged 2 commits from plugin/hygiene into main 2026-05-10 16:23:13 +00:00
2 changed files with 32 additions and 0 deletions

12
.gitignore vendored
View File

@ -19,3 +19,15 @@
# Workspace auth tokens
.auth-token
.auth_token
# Python bytecode (append only — do not remove entries above)
__pycache__/
*.pyc
*.py[cod]
*$py.class
.Python
*.egg-info/
*.egg
.pytest_cache/
build/
dist/
.eggs/

20
tests/README.md Normal file
View File

@ -0,0 +1,20 @@
# Tests
This plugin uses a smoke-test approach: plugin.yaml schema validation, SKILL.md
frontmatter checks, and adapter re-export verification. The test suite covers
the manifest structure and integration points rather than runtime behavior.
## Running Tests
```bash
pytest tests/ -v
```
## Coverage Rationale
This plugin is primarily prose (skills, rules, commands) with a thin adapter
layer. The adapter (`adapters/claude_code.py`) is a re-export wrapper that
implements no business logic — it delegates to `AgentskillsAdaptor` from
`plugins_registry.builtins`. Unit-testing such a wrapper would test the
framework, not the plugin. The smoke suite provides sufficient coverage for
the manifest contract and adapter wiring.