💡 摘要
Claude夜市提供插件,以通过自动化和质量检查增强软件工程工作流程。
🎯 适合人群
🤖 AI 吐槽: “看起来很能打,但别让配置把人劝退。”
风险:Critical。建议检查:是否执行 shell/命令行指令;是否发起外网请求(SSRF/数据外发);API Key/Token 的获取、存储与泄露风险;依赖锁定与供应链风险。以最小权限运行,并在生产环境启用前审计代码与依赖。
Claude Night Market
Claude Code plugins for software engineering workflows.
This repository adds 16 plugins to Claude Code for git operations, code review, spec-driven development, and issue management. Each plugin functions independently to allow selective installation while sharing a common testing framework for consistency.
Features
Governance & Quality
Hooks adapt context based on the active agent. pensive tracks usage frequency and failure rates to identify unstable workflows. imbue enforces test-driven development via a PreToolUse hook that verifies the existence of test files before allowing implementation writes. For complex tasks, imbue:rigorous-reasoning requires step-by-step logic checks before tool execution.
Security & Session Management
leyline manages OAuth flows for GitHub, GitLab, and AWS with local token caching. conserve implements permission checks, automatically approving safe commands like ls while blocking high-risk operations like rm -rf /. sanctum isolates named sessions for debugging, feature work, and PR reviews. Quality gates in /create-skill and /create-command halt execution if the project has failing tests.
Maintenance & Resilience
/cleanup orchestrates bloat removal, code refinement, and AI hygiene auditing in a single pass with progressive depth levels. /update-ci reconciles pre-commit hooks and GitHub Actions workflows with recent code changes, detecting renamed files and orphaned references. /update-plugins recommends updates based on plugin stability metrics and includes module auditing to detect orphaned or missing skill references. /fix-workflow attempts to repair failed runs by analyzing previous errors. /abstract:make-dogfood generates or validates Makefile targets for all documented commands across plugins, with automatic language detection for Python, Rust, and TypeScript projects. For strategic decisions, /attune:war-room uses a Type 1/2 reversibility framework to route choices to appropriate expert subagents, with war-room-checkpoint enabling embedded escalation at decision points during implementation.
Cross-Session State (Claude Code 2.1.16+)
attune, spec-kit, and sanctum integrate with the native Claude Code Tasks system. Task creation occurs on-demand, and state persists across sessions via CLAUDE_CODE_TASK_LIST_ID. The war-room-checkpoint skill integrates with commands like /do-issue, /pr-review, /fix-pr, and /architecture-review to trigger expert deliberation when high-stakes decisions emerge during workflows. Ambiguity detection prompts for user decisions when task boundaries are unclear. Versions prior to 2.1.16 use file-based state by default.
Workflow Improvements
Commands automate multi-step processes to reduce manual intervention. /prepare-pr validates branch scope, runs configured linters, and verifies a clean git state before drafting a pull request. /full-review audits syntax, logic, and security in a single pass. /speckit-specify requires a written specification phase before generating code. To maintain context, /catchup reads recent git history, and /attune:init detects project types (Python, Node) to scaffold configuration files.
Quick Start
Claude Code Plugin Commands
# 1. Add the marketplace /plugin marketplace add athola/claude-night-market # 2. Install plugins /plugin install sanctum@claude-night-market # Git workflows /plugin install pensive@claude-night-market # Code review /plugin install spec-kit@claude-night-market # Spec-driven dev # 3. Use /prepare-pr # Prepare a pull request /full-review # Run code review Skill(sanctum:git-workspace-review) # Invoke a skill
npx skills
# Install the entire marketplace npx skills add athola/claude-night-market # Or install specific plugins npx skills add athola/claude-night-market/sanctum # Git workflows npx skills add athola/claude-night-market/pensive # Code review npx skills add athola/claude-night-market/conserve # Resource optimization
Post-Installation Setup (Claude Code 2.1.16+)
Initialize plugins with Setup hooks:
# One-time initialization claude --init # Weekly maintenance claude --maintenance
Note: If the
Skilltool is unavailable, read skill files atplugins/{plugin}/skills/{skill-name}/SKILL.md.
Detailed instructions: See the Installation Guide.
What's Included
16 plugins organized in layers, each building on foundations below:
flowchart TB classDef domainClass fill:#e8f4f8,stroke:#2980b9,stroke-width:2px,color:#2c3e50 classDef utilityClass fill:#f8f4e8,stroke:#f39c12,stroke-width:2px,color:#2c3e50 classDef foundationClass fill:#f4e8f8,stroke:#8e44ad,stroke-width:2px,color:#2c3e50 classDef metaClass fill:#e8f4e8,stroke:#27ae60,stroke-width:2px,color:#2c3e50 subgraph Domain["Domain Specialists"] direction LR D1[archetypes]:::domainClass D2[pensive]:::domainClass D3[parseltongue]:::domainClass D4[memory-palace]:::domainClass D5[spec-kit]:::domainClass D6[minister]:::domainClass D7[attune]:::domainClass D8[scry]:::domainClass D9[scribe]:::domainClass end subgraph Utility["Utility Layer"] direction LR U1[conserve]:::utilityClass U2[conjure]:::utilityClass U3[hookify]:::utilityClass end subgraph Foundation["Foundation Layer"] direction LR F1[imbue]:::foundationClass F2[sanctum]:::foundationClass F3[leyline]:::foundationClass end subgraph Meta["Meta Layer"] direction LR M1[abstract]:::metaClass end Domain ==> Utility ==> Foundation ==> Meta
Layer Overview
- Foundation Layer: Core utilities.
sanctum(git and sessions),leyline(auth and quotas), andimbue(TDD cycles). - Utility Layer: Resource management.
conserve(context optimization) andhookify(rules engine with hook conversion and context-aware rule suggestions). - Domain Specialists: Task-specific logic.
pensive(code review and refinement, including NASA Power of 10 safety patterns),spec-kit(requirements), andminister(issue tracking). - Meta Layer:
abstractprovides tools for plugin and skill authoring, including Makefile generation and command-to-target validation.
See Capabilities Reference for the full list of 126 skills, 114 commands, and 41 agents.
Common Workflows
Details are available in the Common Workflows Guide.
| Workflow | Command | Example |
|----------|-------------|---------|
| Initialize project | /attune:arch-init | attune:arch-init --name my-api |
| Review a PR | /full-review | Run multi-discipline code review |
| Architecture review | /fpf-review | FPF analysis |
| Fix PR feedback | /fix-pr | Address review comments |
| Implement issues | /do-issue | Progressive issue resolution |
| Fix workflow issues | /fix-workflow | Self-correcting with Reflexion |
| Prepare a PR | /prepare-pr | Quality gates before merge |
| Create GitHub issue | /create-issue | Interactive issue creation |
| Manage labels | /update-labels | GitHub label taxonomy |
| Catch up on changes | /catchup | Context recovery |
| Write specifications | /speckit-specify | Spec-driven development |
| Debug issues | Skill(superpowers:debugging) | Root cause analysis |
| Codebase cleanup | /cleanup | Orchestrated bloat, quality, and hygiene scan |
| Update CI/CD | /update-ci | Reconcile hooks and workflows with code changes |
| Refine code | /refine-code | Duplication, algorithms, and clean code analysis |
| Safety review | Skill(pensive:safety-critical-patterns) | NASA Power of 10 guidelines for robust code |
| Improve plugins | /update-plugins | Update based on stability metrics + module audit |
| Generate Makefiles | /abstract:make-dogfood | Auto-generate Makefiles for plugins with language detection |
| Strategic decisions | /attune:war-room | Expert routing with reversibility scoring |
| Embedded escalation | Skill(attune:war-room-checkpoint) | Inline expert deliberation at decision points |
LSP Integration
LSP (Language Server Protocol) support requires Claude Code v2.0.74+. It enables symbol search in ~50ms, significantly faster than standard text search.
Setup:
- Enable LSP in
~/.claude/settings.json:{ "env": { "ENABLE_LSP_TOOL": "1" } } - Install language servers (e.g.,
npm install -g pyright). - Install LSP plugins:
/plugin install pyright-lsp@claude-plugins-official
Extending Night Market
To create a new plugin:
make create-plugin NAME=my-plugin make validate make lint && make test
Refer to the Plugin Development Guide.
Prompt Context Usage
The ecosystem adds ~14.8k characters to the system prompt (limit: 15k), enforced by a pre-commit hook. Plugins use modular designs and progressive loading to stay within these limits.
Contributing
Each plugin maintains its own tests and documentation. See the Plugin Development Guide.
License
优点
- 自动化复杂工作流程
- 增强代码质量和治理
- 支持多种编程语言
- 模块化设计以便选择性安装
缺点
- 对新用户可能过于复杂
- 需要正确的设置和配置
- 依赖Claude Code版本
- 可能在简单项目中引入复杂性
相关技能
免责声明:本内容来源于 GitHub 开源项目,仅供展示和评分分析使用。
版权归原作者所有 athola.
