rules-creation

Generate AGENTS.md and opencode.json configurations for OpenCode rules.

11|2|Updated Feb 18, 2026
One-click install
npx skills add https://github.com/the-perfect-developer/the-perfect-opencode --skill rules-creation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rules-creation
Source: https://github.com/the-perfect-developer/the-perfect-opencode/tree/main/.opencode/skills/rules-creation
Command: npx skills add https://github.com/the-perfect-developer/the-perfect-opencode --skill rules-creation

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides a structured approach for creating and maintaining OpenCode rules by generating AGENTS.md content, optional global guidelines, and configuration references that guide AI behavior.

Core Features & Use Cases

  • Generate project-level AGENTS.md with context-specific rules and conventions.
  • Scaffold local/global rule configurations using opencode.json and file references for reuse.
  • Support modular loading patterns (e.g., .opencode/rules/*) to scale rule sets in monorepos.

Quick Start

Run /init in OpenCode to auto-generate AGENTS.md for your project and begin tailoring rules as needed.

Frequently Asked Questions about rules-creation

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

FAQPage Schema
How do I generate an AGENTS.md file to set AI coding rules for my project?

To generate an AGENTS.md file, run /init in OpenCode to auto-scaffold project-level rules and conventions. This creates context-specific guidance that dictates AI behavior and enforces project standards.

What is the best way to manage OpenCode rules in a monorepo setup?

Managing OpenCode rules in a monorepo uses modular loading patterns through .opencode/rules/* directories. This approach scales rule sets by organizing context-specific configurations and enforcing precedence across different project modules.

Can I use opencode.json to reference local and global rule configurations?

Yes, opencode.json supports referencing both local and global rule files to enable consistent governance across teams. This enforces modular loading and precedence by pointing to specific rule files for reuse.

Do I need to manually write all project standards into AGENTS.md?

No, you do not need to manually write all project standards into AGENTS.md. The skill provides a structured approach by scaffolding optional global guidelines and configuration references that guide AI behavior automatically.

When should I use personal global rule files instead of project-level AGENTS.md?

Use personal global rule files for individual preferences and project-level AGENTS.md for context-specific team conventions. This separation enables consistent governance while maintaining modular loading and precedence through opencode.json references.