Sign In

polyforgeai

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

polyforgeai

Self-adaptive Claude Code plugin for automated software development workflows

Source
npmnpm
Version
0.4.0
Version published
Weekly downloads
3
-92.5%
Maintainers
1
Weekly downloads
 
Created
Source

npm version npm downloads CI License: MIT Node.js

PolyForge

Self-adaptive Claude Code plugin for automated software development workflows.

PolyForge scans your project, detects your stack, architecture, and conventions, then provides intelligent slash commands to automate common development tasks.

Install

npx polyforgeai install

This symlinks PolyForge skills and rules into ~/.claude/, making them available in any Claude Code session.

Restart Claude Code after installing or updating PolyForge — skills are loaded at session start.

Quick Start

  • Install PolyForge and restart Claude Code
  • If your project already has a .claude/ directory with custom commands or skills, back it up first (mv .claude .claude-backup) — /forge will recreate it cleanly
  • Open Claude Code in your project
  • Run /forge — PolyForge scans your project and generates an optimized configuration
  • Use any command: /pr-review, /fix #123, /brainstorm, etc.

Commands

CommandDescription
/forgeScan project, detect stack/architecture, generate config interactively
/pr-reviewReview a PR with fresh context — checks CI, code quality, security
/analyse-dbConnect to DB (Docker or direct), generate docs/DB.md schema documentation
/analyse-codeFull codebase analysis — patterns, security, performance, config issues
/diagnoseInvestigate a specific error or behavior — determine root cause and if it's a real bug
/report-issueDetect and create issues on GitHub/Jira/GitLab
/feature #NBuild a feature from an issue — plan, implement, test, PR
/fix #NFix an issue — branch, implement, test, PR (autonomy level configurable)
/fix-ciDiagnose and fix CI/CD failures — loops max 3 times then reports
/brainstormFree-form brainstorming — produces action plan with parallelizable tasks
/generate-docGenerate/update Claude-optimized documentation (CLAUDE.md, docs, rules)
/squashClean up commit history — regroup messy commits into logical units before PR
/add-ruleAdd project rules or conventions without re-running /forge

How It Works

PolyForge uses Claude Code's native extension points:

  • Skills (.claude/skills/) — Each command is a SKILL.md that Claude Code loads on demand
  • Rules (.claude/rules/) — Golden principles enforced across all interactions
  • Hooks — Pipeline verification (tests, lint, vulncheck) before push/PR

Project Configuration

After /forge, your project gets:

.claude/
  polyforge.json         # Project config (stack, tracker, autonomy, pipeline)
  rules/
    polyforge-*.md       # Stack-specific rules (scoped by file path)
  skills/                  # (symlinked from PolyForge install)
CLAUDE.md                  # Short, high-signal project summary (<200 lines)
docs/
  CONTEXT.md               # Detailed architecture and project context
tmp/                       # PolyForge working directory (gitignored)

Autonomy Levels

Configured per project during /forge:

  • Full auto: PolyForge branches, fixes, tests, and creates PRs autonomously
  • Semi-auto: PolyForge proposes changes, waits for approval before applying

Permissions & Hands-Free Mode

By default, Claude Code asks for permission on every file edit and shell command. If you chose "full auto" during /forge, you'll be asked whether to grant full permissions for the project.

Via /forge (persistent, per-project): Generates a .claude/settings.json that auto-approves all operations in the project directory. You can revert by deleting the file.

Via CLI flag (one-time, any project):

claude --dangerously-skip-permissions

Launches a single session with all permissions granted. Nothing is saved — next session returns to normal.

Skill Management

Install everything or pick what you need:

npx polyforgeai install                  # Install all skills & rules
npx polyforgeai install --force          # Reinstall, overwriting existing
npx polyforgeai add-skill pr-review fix  # Install specific skills only
npx polyforgeai remove-skill analyse-db  # Remove a skill
npx polyforgeai list                     # See available skills & install status

Issue Tracker Integration

Auto-detected during /forge:

  • GitHub Issues — detected via gh api
  • Jira — detected from .env, .jira config
  • GitLab — detected from git remote

Design Principles

  • Positive rules — all golden principles are phrased as assertions, not negations (proven more effective with LLMs)
  • Fresh context — PR reviews use isolated subagents to avoid author bias
  • Circuit breakers — max 3 retries on any failing operation, then switch strategy or ask for help
  • Progressive disclosure — context is loaded on-demand, not upfront, to preserve the context window
  • Hooks enforce, rules guide — deterministic checks (tests, lint) are hooks; advisory guidance stays in rules

Update

npx polyforgeai update

Uninstall

npx polyforgeai uninstall

Requirements

Issue tracker CLIs (install only what you use):

Note: PolyForge is built on Claude Code's native extension system (skills, rules, hooks). It requires Claude Code as its runtime and does not support other AI models or providers. The skills are plain markdown and could be adapted to other tools in the future, but the orchestration (subagents, worktrees, context management) relies on Claude Code.

Contributing

Contributions are welcome! Please:

  • Fork the repository
  • Create a feature branch (git checkout -b feature/my-feature)
  • Run tests (node --test tests/**/*.test.js)
  • Commit your changes
  • Open a pull request

License

MIT

Keywords

claude

FAQs

Package last updated on 13 Mar 2026

Related posts