agentic-actions-audito…
Audit GitHub Actions that run AI agents for prompt injection, unsafe interpolation, sandbox gaps, and permissive actor rules. Use…
Agents should invoke this skill for code reviews, linting/formatting setup, maintainability checks, complexity concerns, warning cleanup, coding standards, or quality gates in Rust, TypeScript, Python, shell, and mixed repos.
$ npx -y skills add waybarrios/opencode-power-pack --skill code-quality --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/code-qualityContext preview
The summary Claude sees to decide when to auto-load this skill.
Agents should invoke this skill for code reviews, linting/formatting setup, maintainability checks, complexity concerns, warning cleanup, coding standards, or quality gates in Rust, TypeScript, Python, shell, and mixed repos.
name: code-quality description: Agents should invoke this skill for code reviews, linting/formatting setup, maintainability checks, complexity concerns, warning cleanup, coding standards, or quality gates in Rust, TypeScript, Python, shell, and mixed repos. license: MIT (modified; see UPSTREAMS.json)
Structured code review and quality enforcement across common tech stacks. Checklists, linting strategies, and metrics to keep codebases healthy.
1. **Run static analysis:** Linters, type checkers, formatters 2. **Review against checklist:** Language-specific items below 3. **Check complexity metrics:** Cyclomatic < 25, data flow < 25 4. **Report findings:** Structured output with severity and recommendations
---
Standard clippy configuration (in `Cargo.toml` or `.clippy.toml`):
[lints.clippy]
cognitive_complexity = "warn"
pedantic = { level = "deny", priority = -1 }
nursery = { level = "deny", priority = -1 }
unwrap_used = "deny"**Standard commands:**
cargo fmt cargo clippy --all-targets --all-features -- -D warnings cargo check cargo test -- --test-threads=1
**Key rules to enforce:**
**Recommended `tsconfig.json` strictness:**
{
"compilerOptions": {
"strict": true,
"noUncheckedIndexedAccess": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"exactOptionalPropertyTypes": true
}
}**Key rules to enforce:**
**Recommended `pyproject.toml`:**
[tool.ruff] target-version = "py312" line-length = 88 [tool.ruff.lint] select = ["E", "F", "W", "I", "N", "UP", "ANN", "B", "A", "C4", "DTZ", "ISC", "PIE", "PT", "RET", "SIM", "TCH", "ARG", "PTH", "ERA"] [tool.mypy] strict = true warn_return_any = true warn_unreachable = true
**Key rules to enforce:**
---
**Correctness:**
**Clarity:**
**Architecture:**
**Testing:**
**Security (flag for a security follow-up if concerns found):**
---
Measures the number of independent paths through code. Recommended threshold: **< 25**.
| Complexity | Risk Level | Action | |---|---|---| | 1-10 | Low | Simple, well-structured code | | 11-20 | Moderate | Consider simplification if growing | | 21-24 | High | Refactoring recommended | | 25+ | Violation | Must refactor before merge |
**How to reduce:**
Measures how many variables interact within a function. Recommended threshold: **< 25**.
**How to reduce:**
| Language | Tool | Command | |---|---|---| | Rust | `cargo clippy` (cognitive_complexity) | Built into clippy config | | TypeScript | `eslint-plugin-sonarjs` | Configure `complexity` rule | | Pyt
54 rigorous skills for Codex, OpenCode, and Pi: code review, security audit, feature development, frontend design, MCP tools, Hugging Face ML/training, and more.
Audit GitHub Actions that run AI agents for prompt injection, unsafe interpolation, sandbox gaps, and permissive actor rules. Use…
Audit and improve project-rules files (AGENTS.md, CLAUDE.md, .agents/instructions, local overrides) so the agent keeps accurate…
Capture learnings from the current session into the project-rules file (AGENTS.md, CLAUDE.md, or local override) so future…
Operational rubric that turns "don't make AI slop" into observable properties, severity levels, evidence requirements, and repair…
Design a feature architecture by analyzing existing codebase patterns and conventions, then provide a comprehensive…
Deeply analyze an existing codebase feature by tracing execution paths, mapping architecture layers, understanding patterns and…