verify
Run full verification pipeline (lint, format, test, security) before committing
- License 许可
- MIT
- 最近更新
- 2026-11-02
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- verify
- description
- Run full verification pipeline (lint, format, test, security) before committing
03 SKILL.md 正文
Verify — Pre-Commit Quality Gate
Run this before every commit to ensure code quality and security.
When to Activate
- Before creating a commit
- Before pushing to remote
- After making significant code changes
- When asked to "verify", "check", or "validate" the code
Verification Pipeline
Run all steps in order. Stop on first failure.
Step 1: Lint
uv run ruff check claude_discord/
If there are auto-fixable issues:
uv run ruff check --fix claude_discord/
Step 2: Format
uv run ruff format --check claude_discord/
If formatting is needed:
uv run ruff format claude_discord/
Step 3: Tests
uv run pytest tests/ -v --cov=claude_discord --cov-report=term-missing
All tests must pass. Review coverage for newly added code.
Step 4: Security Audit
Before committing, check for these security concerns specific to this project:
- No shell=True: Search for
shell=Truein any subprocess call — this is forbidden - No hardcoded secrets: Search for patterns like
token,secret,password,api_keywith string literal values - Session ID validation: Any new code accepting session IDs must validate with
^[a-f0-9\-]+$ - Subprocess arguments: All user input passed to Claude CLI must use
--separator - Environment stripping:
_STRIPPED_ENV_KEYSmust include any new secret env vars
# Quick security grep
uv run ruff check claude_discord/ --select S # bandit rules via ruff
Step 5: Import Check
Verify the public API still works:
python -c "from claude_discord import ClaudeRunner, ClaudeChatCog, SkillCommandCog, SessionRepository"
Failure Protocol
- Lint/Format failures: Fix automatically, re-run
- Test failures: Fix the code (not the test, unless the test is wrong)
- Security failures: STOP. Do not commit. Fix the vulnerability first
- Import failures: Check
__init__.pyexports match actual module structure
04 同仓库更多 Skills
release
Cut a release
deploy
Deploy the bot
release
Cut a release
deploy
Deploy the bot
lockin-feature-workflow
Plan distinct features with OpenSpec in Lockin AI Discord conversations, split clearly independent builds into linked child planning threads, or dispatch every approved dependency-ready task to visible Ebi workers and integrate their results through one owner. Use for feature planning, approved parallel builds, and resuming a coordinated build.
master-planning
Guide project brainstorming, clarify requirements through short questions, and turn agreed decisions into coordinated plans for fresh-session builders. Use for planning a project, business, feature, or several related build lanes; resume when the user answers an active planning question. Do not invoke for an already scoped small fix, a factual question, or executing an existing plan.