poletron/custom-rules

No description

0 stars0 forksUpdated Jan 26, 2026
npx skills add poletron/custom-rules

README

Antigravity Custom Rules Library

A portable, high-performance library of AI coding rules, workflows, and skills designed to supercharge agentic assistance.

License Antigravity NPM

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:

  1. Initialize your configuration (ruleset.json).
  2. Help you select Skills (React, TypeScript, Docker, etc.) or Presets (Frontend, Backend, etc.).
  3. 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/.

IntentActive RoleFocus
Requirements / Business๐Ÿ‘” Product ManagerROI, User Stories, Scope
System Design / DB๐Ÿ—๏ธ ArchitectScalability, Diagrams, Data Models
Coding / Implementation๐Ÿ‘“ Tech LeadClean Code, SOLID, Refactoring
Security / Audit๐Ÿ›ก๏ธ Security EngIAM, OWASP, Prowler
Deploy / Logs / Action๐Ÿš’ SRE / DevOpsObservability, Stability, RCA
Testing / Verification๐Ÿงช QA EngineerE2E, Edge Cases, Bugs

The Orchestrator (00-orchestrator.md) automatically detects these intents and routes the query to the correct expert.

๐Ÿค Contributing

  1. Add a Skill: Create a new folder in skills/ using the skill-creator template.
  2. Update Rules: Modify markdown files in rules/.
  3. Publish: The CLI package in packages/cli is published to NPM to distribute these updates.
  4. References: See rules/rule-creation.md for guidelines.

๐Ÿ“ License

CC0 1.0 Universal (Public Domain Dedication). See LICENSE.

Publisher

poletronpoletron

Statistics

Stars0
Forks0
Open Issues0
LicenseCreative Commons Zero v1.0 Universal
CreatedJan 8, 2026