qc
Run quality control checks on the codebase — type checking, linting, tests, and server smoke test. Use when the user says "/qc", wants to verify code quality, or after making significant changes.
- License 许可
- Apache-2.0
- 最近更新
- 2026-04-27
- Stars
- ★ 6
- Forks
- 2
01 前言 Front Matter
- name
- qc
- description
- Run quality control checks on the codebase — type checking, linting, tests, and server smoke test. Use when the user says "/qc", wants to verify code quality, or after making significant changes.
- argument-hint
- [scope: all|types|tests|smoke (default: all)]
03 SKILL.md 正文
What this skill does
Runs a multi-stage quality control pipeline: type checking, linting, unit tests, and a live server smoke test. Reports pass/fail for each stage with details on failures.
Steps
1. Type checking
uv run ty check
Report the number of diagnostics. Zero is the target — any failures should be listed with file and line.
2. Tests
uv run pytest tests/ -v --tb=short 2>&1
Report pass/fail counts. If tests don't exist yet, note that and skip (don't fail QC for missing tests during early development).
3. Server smoke test
Start the server if it's not already running:
charlie server status
If not running, start it:
charlie server start
Wait for health:
curl -s http://localhost:8765/api/health
Then verify REST endpoints respond with valid JSON:
curl -s http://localhost:8765/api/entities | head -c 200
curl -s http://localhost:8765/api/knowledge | head -c 200
curl -s http://localhost:8765/api/stories | head -c 200
Check all return JSON (arrays or objects, not HTML or errors).
Then verify MCP tools work by calling recall through the CLI:
charlie hooks session-start 2>&1 | head -c 500
Check that activation context is generated (contains XML tags or markdown). This exercises the full MCP → store → context pipeline.
4. Web dashboard check
curl -s http://localhost:8765/ | grep -c '<div id="root">'
Verify the SPA index.html is served.
5. Report
Summarize results:
| Check | Status |
|---|---|
| Type checking | X diagnostics |
| Tests | X passed, X failed |
| Server health | OK/FAIL |
| MCP tools | OK/FAIL |
| REST API | OK/FAIL |
| Web dashboard | OK/FAIL |
If any stage fails, list the specific failures with enough detail to fix them.
Scope options
If $ARGUMENTS specifies a scope:
types— only run type checkingtests— only run testssmoke— only run server smoke testall(default) — run everything
04 同仓库更多 Skills
trick
Run Charlie tricks by name or path. Use when the user says "/trick", wants to run a trick, list available tricks, or execute a skill file. Also trigger when the user mentions running a specific trick by name (e.g., "run the session-save trick", "run ship", "do the commit trick").
research
Research a topic and save findings to Charlieverse knowledge. Use whenever the user wants to research something, look up documentation, investigate a library or tool, explore a concept, or asks "what do you know about X". Also trigger when the user says "/research", wants to build up knowledge about a subject, or asks you to "look into" something — even if they don't use the word "research" explicitly.
trick
Run Charlie tricks by name or path. Use when the user says "/trick", wants to run a trick, list available tricks, or execute a skill file. Also trigger when the user mentions running a specific trick by name (e.g., "run the session-save trick", "run ship", "do the commit trick").
research
Research a topic and save findings to Charlieverse knowledge. Use whenever the user wants to research something, look up documentation, investigate a library or tool, explore a concept, or asks "what do you know about X". Also trigger when the user says "/research", wants to build up knowledge about a subject, or asks you to "look into" something — even if they don't use the word "research" explicitly.
copilot
Run a task through GitHub Copilot CLI. Use when the user says "/copilot", wants to delegate work to Copilot, or mentions running something through Copilot. Also trigger when the user wants to use Copilot for a task.
codex
Run a task through OpenAI Codex CLI. Use when the user says "/codex", wants to delegate work to Codex, or mentions running something through Codex. Also trigger when the user wants to use an OpenAI model for a task.