rules-install

Installs one shared global rule text across multiple local coding agents.

3|Updated Mar 20, 2026
One-click install
npx skills add https://github.com/ceasarXuu/AstartesSkills --skill rules-install-ceasarxuu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rules-install
Source: https://github.com/ceasarXuu/AstartesSkills/tree/main/skills/rules-install
Command: npx skills add https://github.com/ceasarXuu/AstartesSkills --skill rules-install-ceasarxuu

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Keeping the same personal coding rules synchronized across Claude Code, Codex, OpenCode, Pi, TRAE CN, and Grok Build is tedious and error-prone, since each agent stores user-level instructions in different files and formats. This Skill detects which agents are installed, resolves their effective instruction targets, and writes your exact role text safely without overwriting unrelated configuration. ## Core Features & Use Cases - Multi-agent detection: Probes executables, environment variables (CLAUDE_CONFIG_DIR, CODEX_HOME, OPENCODE_CONFIG_DIR, PI_CODING_AGENT_DIR), and config roots to determine which supported agents are actually installed and where their active instruction files live. - Safe dual-mode writes: Writes dedicated rule files for Claude/Grok/TRAE CN, or inserts a managed rules-install marker block into shared aggregate files like Codex AGENTS.md, preserving all unrelated content. - Backup and validation: Creates timestamped backups before every change, re-reads targets to verify exact content, and reports installed, unchanged, skipped, and unresolved agents with restart instructions. - Use Case: You switch between Codex and Claude Code daily and want the same coding style rules active in both. Provide your role text once, confirm the detected install scope, and the Skill updates both agents with backups and verification. ## Quick Start Use the rules-install skill to detect my installed coding agents, show me the effective target paths, and install my global role text into the agents I confirm.

Frequently Asked Questions about rules-install

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I sync the same coding rules across Claude Code and Codex?

Provide your exact role text, then the Skill detects installed agents, resolves Claude's rules/rules-install.md and Codex's AGENTS.md targets, and writes after you confirm the scope. Codex receives a managed marker block while Claude gets a dedicated rule file.

Which coding agents does rules-install support?

It supports Claude Code, Codex, OpenCode, Pi, TRAE CN, and Grok Build. Each agent has its own resolution rules using environment variables like CLAUDE_CONFIG_DIR, CODEX_HOME, and PI_CODING_AGENT_DIR, falling back to documented default paths.

Will installing global rules overwrite my existing AGENTS.md content?

No. For shared files like AGENTS.md, the Skill only manages content inside rules-install begin/end markers and preserves everything else. It also creates a timestamped backup before any real change to an existing file.

Does rules-install work with TRAE CN and Grok Build?

Yes, but cautiously. TRAE CN requires verifying the active personal-rule root before writing, and Grok Build uses a Claude-compatible rule source verified via grok inspect. Unverified targets are marked unresolved and skipped.

Why are my new global rules not taking effect after installation?

Coding agents load user-level instructions at startup, so you must fully exit and restart the affected agent processes or IDE sessions. Pi can also reload context with /reload, but a full restart is the recommended default.