| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A CLI tool to easily sync all of your favorite AI assistant instruction files from a single source. Inspired by rulesync.
bun install -g onlyrulesbun install onlyrulesThe quickest way to get started with OnlyRules is to initialize a new project:
npx rulesync initThis will create a basic configuration and template files in your current directory. After initialization, you can:
For more advanced usage, see the sections below.
From a local file:
onlyrules generate -f ./rules.mdFrom a URL:
onlyrules generate -f "https://onlyrules.codes/api/rules/raw?id=cmd9nww9z0007l5040oegtmb1"Specify an output directory:
onlyrules generate -f ./rules.md -o ./outputForce overwrite existing files:
onlyrules generate -f ./rules.md --forceGenerate rules for specific AI assistants only:
onlyrules generate -f ./rules.md --target cursor,windsurfonlyrules generate -f ./rules.md --target kiro,cursor,codebuddyAvailable targets include: cursor, copilot, cline, claude, gemini, roo, kiro, codebuddy, windsurf, agents, junie, trae, augment, lingma
onlyrules add -f ./rules-new.mdcThe add command appends new rules to the rulesync.mdc file. When appending:
Options:
Examples:
# Append from local file
onlyrules add -f ./new-rules.mdc
# Append from remote URL
onlyrules add -f https://example.com/rules.mdc
# Append to custom target file
onlyrules add -f ./rules.mdc -o ./custom-rules.mdcList available templates:
onlyrules templatesView a specific template:
onlyrules template basicCreate a new rules file from a template:
onlyrules init development -o ./my-rules.mdOnlyRules comes with several built-in templates to help you get started:
OnlyRules now supports Kiro AI's steering file system. Kiro uses markdown files in .kiro/steering/ to provide persistent project knowledge.
Use the Kiro example template to get started:
onlyrules init kiro-exampleThis creates a comprehensive set of steering files demonstrating:
When generating rules for Kiro, OnlyRules automatically configures appropriate inclusion modes:
# Clone the repository
git clone https://github.com/yourusername/onlyrules.git
cd onlyrules
# Install dependencies
bun install
# Build the project
bun run build
# Run tests
bun run testThis project uses Vitest for testing and follows Test-Driven Development (TDD) principles:
# Run tests once
bun run test
# Run tests in watch mode
bun run test:watch
# Run tests with coverage
bun run test:coverageThis project uses Biome for linting and formatting:
# Format code
bun run format
# Lint code
bun run lint
# Fix linting issues
bun run lint:fixMIT
| Back | FazBrowse Home | New Git URL |