npx skills add poletron/custom-rulesREADME
Antigravity Custom Rules Library
A portable, high-performance library of AI coding rules, workflows, and skills designed to supercharge agentic assistance.
This repository serves as a centralized "Gold Standard" for coding practices, architecture patterns, and operational workflows.
๐ Quick Start
In any project (new or existing), simply run:
npx @poletron/ruleset add
This interactive wizard will:
- Initialize your configuration (
ruleset.json). - Help you select Skills (React, TypeScript, Docker, etc.) or Presets (Frontend, Backend, etc.).
- Automatically link the rules into your
.agent/folder using Symlinks (keeping your repo clean).
๐๏ธ Repository Structure
This monorepo contains both the source of intelligence (rules) and the tooling to distribute it (CLI).
poletron-knowledge/
โโโ packages/
โ โโโ cli/ # The @poletron/ruleset CLI tool
โโโ rules/ # The Intelligence Layer
โ โโโ 00-orchestrator.md # MASTER ROUTER (Always Active)
โ โโโ 01-base-protocol.md # Universal Standards
โ โโโ roles/ # The Squad (Dynamic Personas)
โโโ workflows/ # Procedural Guides (e.g., feature-dev, release-flow)
โโโ skills/ # Modular Knowledge & Tools (60+ skills)
โโโ react/
โโโ typescript/
โโโ docker/
โโโ ...
๐ง Orchestrator & Squad
This library uses a dynamic role-switching architecture defined in .agent/rules/.
| Intent | Active Role | Focus |
|---|---|---|
| Requirements / Business | ๐ Product Manager | ROI, User Stories, Scope |
| System Design / DB | ๐๏ธ Architect | Scalability, Diagrams, Data Models |
| Coding / Implementation | ๐ Tech Lead | Clean Code, SOLID, Refactoring |
| Security / Audit | ๐ก๏ธ Security Eng | IAM, OWASP, Prowler |
| Deploy / Logs / Action | ๐ SRE / DevOps | Observability, Stability, RCA |
| Testing / Verification | ๐งช QA Engineer | E2E, Edge Cases, Bugs |
The Orchestrator (00-orchestrator.md) automatically detects these intents and routes the query to the correct expert.
๐ค Contributing
- Add a Skill: Create a new folder in
skills/using theskill-creatortemplate. - Update Rules: Modify markdown files in
rules/. - Publish: The CLI package in
packages/cliis published to NPM to distribute these updates. - References: See
rules/rule-creation.mdfor guidelines.
๐ License
CC0 1.0 Universal (Public Domain Dedication). See LICENSE.
Publisher
Statistics
Stars0
Forks0
Open Issues0
LicenseCreative Commons Zero v1.0 Universal
CreatedJan 8, 2026