Diagnose, generate, and maintain the AI agent setup of your projects — CLAUDE.md, skills, subagents, rules, and supporting docs.
pip install opsward==0.0.18 Copy PIP instructions
pip install opsward CLI Mode (no AI) These commands are deterministic Python code — regex scoring, filesystem checks, template substitution. Same input always gives the same output.
opsward diagnose . Diagnosis Report: myproject Project type: python Overall score: 72/100 (Grade: C) Components: CLAUDE.md quality [################....] 81/100 Documentation [##############......] 70/100 Skills [############........] 60/100 Setup (rules/agents/hooks) [##########..........] 50/100 Cross-references [####################] 100/100 Missing: [ ] docs_guide.md [ ] docs/known_issues.md Suggestions: 1. Create a docs_guide.md to index your documentation 2. Consider adding hooks in .claude/hooks.json Generate Create missing artifacts (dry run by default):
opsward generate . opsward generate . --write # actually create files Generates CLAUDE.md, docs (architecture, conventions, known_issues, etc.), skill templates, and agents — only what's missing, never overwrites existing files.
opsward maintain . myproject: 3 issue(s) [stale_path] CLAUDE.md references `src/old_module.py` but it does not exist [sync_issue] `new_doc.md` exists in docs/ but is not listed in docs_guide.md [empty_doc] `conventions.md` appears to be an empty stub (12 bytes) Output Formats All CLI commands support --format json for machine-parseable output:
opsward diagnose . --format json opsward generate . --format json opsward maintain . --format json Claude Code Mode (AI-enhanced) Install opsward's skills into Claude Code, and Claude becomes an intelligent layer on top of the deterministic tools. It doesn't just run opsward — it goes beyond the heuristic scores by reading actual source code, reasoning about accuracy, and making intelligent edits.
opsward install-skills --write # into ./.claude/ (project-level) opsward install-skills --global-install --write # into ~/.claude/ (all projects) What the Skills Do Once installed, these skills activate automatically in Claude Code when you ask the right thing:
The CLI provides the structural analysis. Claude provides the semantic understanding and action.
The skills use Claude Code's standard permission model — no special permissions are assumed or required:
If you want faster workflows (e.g., auto-approve file creation during generation), you can configure that in your Claude Code permission settings — but opsward skills never assume it.
Documentation completeness: docs_guide.md, architecture.md, conventions.md, known_issues.md, and content quality.
Skills & agents: SKILL.md presence, descriptions, setup-auditor agent.
Cross-references: paths in CLAUDE.md validated against the filesystem.
Overall health: weighted score (A–F grade) combining all components.
from pathlib import Path from opsward import scan, diagnose, generate, generate_skills, maintain from opsward import recommend_skills, validate_skill_spec sr = scan(".") report = diagnose(sr) print(report) # human-readable report card print(report.grade) # 'A', 'B', 'C', 'D', or 'F' files = generate(sr) # list[GeneratedFile] issues = maintain(sr) # list[MaintenanceSuggestion] # Recommend ecosystem skills based on tech stack recs = recommend_skills(sr) # list[SkillRecommendation] # Validate skills against agentskills.io spec for skill in sr.skills: violations = validate_skill_spec(skill) # Install skills programmatically skill_files = generate_skills(Path.home() / ".claude") CI Integration Use opsward in CI to enforce AI setup quality:
# Fail if overall score drops below 60 opsward diagnose . --min-score 60 # Machine-parseable output for CI tooling opsward diagnose . --format json --min-score 60 # .github/workflows/ai-setup-check.yml name: AI Setup Check on: [pull_request] jobs: check: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: python-version: "3.12" - run: pip install opsward - run: opsward diagnose . --min-score 60 Related Work Project Relationship spec-kit (GitHub) Template-based scaffolding for 20+ AI agents. No diagnosis/scoring/maintenance. claude-code-skill-factory Inside-agent builders for skills, agents, hooks. Good for interactive authoring. ccexp Interactive TUI for browsing Claude Code config files. Complements opsward. npx skills (Vercel) Cross-platform skill package manager. Opsward-generated skills are compatible. awesome-agent-skills 549+ community skills from official dev teams. awesome-claude-code Best single index of the Claude Code ecosystem. wshobson/agents Pre-built plugin monorepo (72 plugins, 112 agents, 146 skills). Mintlify skill.md Auto-generates skill.md from docs sites. Same philosophy, different input. Project links Changelog Documentation Homepage Issues Repository Key dates PyPI data Data sourced directly from PyPI's database. Released: Oct 14, 2026 Latest release 1 maintainer PyPI data Data sourced directly from PyPI's database. thorwhalen1 Credits Author: Thor Whalen
ai-agents claude code-quality developer-tools documentation
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.




