{
  "markdown": "# prism\n\nA Claude Code plugin that adds multi-profile code review, conventional commits, branching, and PR workflows to any repo. It auto-detects your stack and runs security, quality, performance, documentation, and testing reviewers in parallel. Works both locally via slash commands and as an automated CI reviewer on pull requests.\n\n## Setup\n\n### 1. Install the plugin\n\n```bash\n/plugin install SergiCoder/prism\n```\n\n### 2. Add automated PR reviews (optional)\n\n```bash\n/prism:install-ci-review\n```\n\nThen add your Anthropic API key as a repository secret:\n- GitHub repo → Settings → Secrets and variables → Actions → New repository secret\n- Name: `ANTHROPIC_API_KEY`\n\nThe workflow runs automatically on PRs opened by the repo owner, `@prism review` comments, and manual dispatch.\n\n## Examples\n\n```bash\n# create a branch with the right prefix and base\n/prism:create-branch feature user-avatars\n\n# lint, format, conventional commit, and push in one step\n/prism:ship\n\n# report-only review (auto-detects your stack)\n/prism:review-and-report-only\n\n# review and auto-fix all findings\n/prism:review-and-fix\n\n# review and post inline comments on the PR\n/prism:review-pr\n\n# sync with base branch, run tests, and open a pull request\n/prism:open-pr\n\n# read inline PR comments, fix the code, reply, and resolve\n/prism:address-pr-review\n\n# open a release PR from dev into main\n/prism:release\n```\n\n## Commands\n\n| Command | Description |\n|---|---|\n| `/prism:install-ci-review` | Install the automated PR review workflow into the current project |\n| `/prism:create-branch <type> <name>` | Create a `feature/`, `fix/`, or `hotfix/` branch from the correct base |\n| `/prism:ship` | Pre-ship hygiene check, auto-format, conventional commits, push |\n| `/prism:review-and-report-only [profiles]` | Run multi-profile code review — report only, no changes |\n| `/prism:review-and-fix [profiles]` | Run multi-profile code review and auto-fix all findings |\n| `/prism:review-pr [profiles]` | Review and post inline comments + summary on the PR |\n| `/prism:open-pr` | Sync base branch, run tests, open a PR |\n| `/prism:address-pr-review` | Address inline PR review comments — validate, fix, reply, and resolve |\n| `/prism:release` | Open a release PR from `dev` into `main` (for repos using a dev branch) |\n\n## Code Review\n\nAll review commands auto-detect the stack from config files and run only the relevant reviewers. The same profiles run locally and in CI.\n\n```bash\n/prism:review-and-report-only                    # report findings locally\n/prism:review-and-report-only security,performance  # specific profiles only\n/prism:review-and-fix                            # review + auto-fix all severities\n/prism:review-pr                                 # post inline comments on the PR\n```\n\n### Core Profiles\n\n| Profile | What it checks |\n|---|---|\n| `security` | Auth, injection, secrets, headers, rate limiting, data exposure |\n| `quality` | Dead code, duplication, stdlib/dependency reinvention, verbose patterns, size thresholds |\n| `performance` | N+1 queries, indexes, async correctness, caching, frontend rendering |\n| `rest-api` | HTTP status codes, Location headers, error envelopes, resource representation, URL design |\n| `documentation` | Fixes docs directly — CLAUDE.md, README, docstrings, inline comments |\n| `testing` | Writes missing tests directly — happy path, error cases, edge cases |\n\n### Stack Profiles (auto-detected)\n\n| Profile | Language / Framework |\n|---|---|\n| `stack-python` | Python idioms, type safety, error handling |\n| `stack-typescript` | TypeScript/JS idioms, type safety, error handling |\n| `stack-go` | Go idioms, concurrency, type safety |\n| `stack-django` | Models, queries, views, settings, migrations |\n| `stack-flask` | Structure, blueprints, error handling |\n| `stack-fastapi` | Routes, dependencies, Pydantic v2 |\n| `stack-react` | Hooks, state, memoization, accessibility |\n| `stack-vue` | Composition API, reactivity, Pinia |\n| `stack-nextjs` | App Router, server/client components, performance |\n| `stack-nuxt` | Composables, SSR correctness |\n| `stack-sveltekit` | Svelte 5 runes, data loading, form actions |\n| `stack-express` | Middleware, async error handling, input validation |\n| `stack-fastify` | Plugin encapsulation, schema validation, hooks, reply semantics |\n| `stack-spring` | Layers, DI, JPA, error handling, configuration |\n| `stack-laravel` | Eloquent, controllers, validation, migrations |\n| `stack-aspnet` | Controllers, DI lifetimes, EF Core, configuration |\n| `stack-rails` | MVC, ActiveRecord, security, migrations |\n| `stack-go-http` | Handlers, middleware, error responses |\n\nStack detection is automatic from: `package.json`, `pyproject.toml`, `requirements.txt`, `go.mod`, `pom.xml`, `build.gradle`, `composer.json`, `Gemfile`, `*.csproj`.\n\n## Stack Support\n\nCommands auto-detect the stack from project config files (no configuration needed):\n- **Test runners**: pytest, go test, npm/pnpm/yarn test, make test\n- **Linters/formatters**: Ruff, ESLint, Biome, golangci-lint, and others\n- **Base branch**: `main`\n\n## Plugin Structure\n\n```\nprism/\n├── .claude-plugin/\n│   └── plugin.json              # plugin manifest\n├── .github/workflows/\n│   └── claude-review.yml        # prism's own CI review (self-review)\n├── install/\n│   └── claude-review.yml        # installable template for other repos\n├── commands/                    # user-invoked slash commands\n│   ├── create-branch.md\n│   ├── ship.md\n│   ├── review-and-report-only.md\n│   ├── review-and-fix.md\n│   ├── review-pr.md\n│   ├── open-pr.md\n│   ├── address-pr-review.md\n│   ├── release.md\n│   └── install-ci-review.md\n└── skills/                      # review profiles (used locally and in CI)\n    ├── security/SKILL.md\n    ├── quality/SKILL.md\n    ├── performance/SKILL.md\n    ├── rest-api/SKILL.md\n    ├── documentation/SKILL.md\n    ├── testing/SKILL.md\n    ├── stack-python/SKILL.md\n    ├── stack-typescript/SKILL.md\n    ├── stack-go/SKILL.md\n    ├── stack-django/SKILL.md\n    ├── stack-flask/SKILL.md\n    ├── stack-fastapi/SKILL.md\n    ├── stack-react/SKILL.md\n    ├── stack-vue/SKILL.md\n    ├── stack-nextjs/SKILL.md\n    ├── stack-nuxt/SKILL.md\n    ├── stack-sveltekit/SKILL.md\n    ├── stack-express/SKILL.md\n    ├── stack-fastify/SKILL.md\n    ├── stack-spring/SKILL.md\n    ├── stack-laravel/SKILL.md\n    ├── stack-aspnet/SKILL.md\n    ├── stack-rails/SKILL.md\n    └── stack-go-http/SKILL.md\n```\n\n## Contributing\n\nFork the repo and open a PR against `main`.\n",
  "bytes": 6468,
  "sha": "bb9df6781108037d49f4ca65086483e4967d61f9dd6134908084956099edb159",
  "repo_slug": "sergicoder/prism",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/plg_sergicoder_prism_prism_9ea0970f/readme"
}