2026-07-26 12:28:25 +07:00
|
|
|
# code-guide — Comprehensive Programming Best-Practice Plugin
|
2026-07-25 11:35:16 +07:00
|
|
|
|
|
|
|
|
A Claude Code plugin serving as a complete engineering guide for **all programming situations** — monorepo, standalone, any language, any framework.
|
|
|
|
|
|
|
|
|
|
## Features
|
|
|
|
|
|
2026-07-26 12:28:25 +07:00
|
|
|
### 24 Best-Practice Skills
|
2026-07-25 11:35:16 +07:00
|
|
|
|
|
|
|
|
| Category | Skills |
|
|
|
|
|
|----------|--------|
|
|
|
|
|
| **Core Engineering** | clean-code, clean-architecture, design-patterns, testing, error-handling, security, api-design, git-workflow, documentation, logging-observability, performance |
|
|
|
|
|
| **Languages** | typescript, python, rust, go |
|
|
|
|
|
| **Frameworks** | react-frontend, elysiajs, hono-backend, drizzle-database, nextjs |
|
|
|
|
|
| **Infrastructure** | docker, ci-cd, monitoring |
|
|
|
|
|
| **Monorepo** | monorepo (patterns + submodules + workspace tooling) |
|
|
|
|
|
|
|
|
|
|
Skills activate automatically when Claude detects relevant context (language, framework, topic).
|
|
|
|
|
|
2026-07-26 12:28:25 +07:00
|
|
|
### Hooks for Auto-Activation
|
2026-07-25 11:35:16 +07:00
|
|
|
|
|
|
|
|
| Hook | Trigger | What It Does |
|
|
|
|
|
|------|---------|--------------|
|
2026-07-26 12:28:25 +07:00
|
|
|
| **Stop** | Before stopping | Verifies mandatory skills are being applied (engineering-principles, clean-code, clean-architecture, testing, error-handling, security, git-workflow, api-design) |
|
2026-07-25 11:35:16 +07:00
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
|
2026-07-25 11:54:26 +07:00
|
|
|
### Quick Install
|
2026-07-25 11:35:16 +07:00
|
|
|
|
|
|
|
|
```bash
|
2026-07-26 12:28:25 +07:00
|
|
|
# From anywhere with access to the plugin directory
|
2026-07-25 11:54:26 +07:00
|
|
|
./install.sh
|
2026-07-25 11:35:16 +07:00
|
|
|
|
2026-07-25 11:54:26 +07:00
|
|
|
# Or symlink (edits in this repo are live)
|
|
|
|
|
./install.sh --link
|
2026-07-25 11:35:16 +07:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
|
|
Skills are **auto-triggered** — Claude loads them when you mention relevant topics or work with matching file types.
|
|
|
|
|
|
|
|
|
|
Example triggers:
|
|
|
|
|
- *"Refactor this function"* → `clean-code` activates
|
|
|
|
|
- *"Write a test for this"* → `testing` activates
|
|
|
|
|
- *"Design an API endpoint"* → `api-design` activates
|
|
|
|
|
- Working with `.ts` files → `typescript` activates
|
2026-07-26 12:28:25 +07:00
|
|
|
- Project with `Cargo.toml` → `rust` activates
|
2026-07-25 11:35:16 +07:00
|
|
|
|
|
|
|
|
## Structure
|
|
|
|
|
|
|
|
|
|
```
|
2026-07-26 12:28:25 +07:00
|
|
|
code-guide/
|
2026-07-25 11:35:16 +07:00
|
|
|
├── .claude-plugin/
|
2026-07-26 12:28:25 +07:00
|
|
|
│ └── plugin.json # Plugin manifest
|
2026-07-25 11:35:16 +07:00
|
|
|
├── hooks/
|
2026-07-26 12:28:25 +07:00
|
|
|
│ └── hooks.json # Hook configuration (Stop prompt)
|
2026-07-25 11:35:16 +07:00
|
|
|
├── skills/
|
2026-07-26 12:28:25 +07:00
|
|
|
│ ├── clean-code/ # 23 more skill directories
|
|
|
|
|
│ └── ...
|
2026-07-25 11:35:16 +07:00
|
|
|
└── README.md
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Development
|
|
|
|
|
|
|
|
|
|
Skills are in `skills/<name>/SKILL.md` format (modern Claude Code plugin convention). Each skill includes:
|
|
|
|
|
|
2026-07-26 12:28:25 +07:00
|
|
|
- **Frontmatter** — `name` and `description` with trigger context
|
|
|
|
|
- **Lean body** — key rules, examples, and anti-patterns
|
2026-07-25 11:35:16 +07:00
|
|
|
|
2026-07-26 12:28:25 +07:00
|
|
|
The Stop hook injects reminders when mandatory skills aren't being applied.
|