agentleFS
Fei2-LabsFei2-Labs/skill-genie/skills/init-rules/SKILL.md

init-rules

Skill12 starsChanged 48 days agoMITView on GitHub

Interactively generate personalized agent rules. Asks about tech stack, work style, and preferences, then writes customized rule files. Use when user says \"init rules\", \"set up my rules\", or \"configure agent rules\".

5 other projects use a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

10 rules. 0 are common, 7 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 7

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Ask the user these questions ONE AT A TIME.

    line 17
  2. Very specific:

    Before writing, if rules/ already contains .md files:

    line 45
  3. Distinctive:

    Read all existing rule files fully — understand the user's current preferences and intent

    line 46
  4. Distinctive:

    When generating new rules, compare the user's new answers against their existing rules:

    line 48
  5. Distinctive:

    No conflict: Keep the existing rule as-is in the new output

    line 49
  6. Distinctive:

    New rule with no existing equivalent: Add it

    line 51
  7. Very specific:

    After collecting answers, generate these files in the skill-genie rules/ directory:

    line 54
  8. Distinctive:

    Do NOT include project-specific details — those belong in project AGENTS.md

    line 78
  9. Distinctive:

    Keep rules universal (apply to any project the user works on)

    line 79
  10. Very specific:

    If user says "same as example", copy from rules.example/

    line 80

“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Init Rules

Requires Skill Genie. This skill generates rule files for the skill-genie rules/ directory. Install skill-genie first, then run this skill.

Generate personalized agent rule files through a short interview.

Process

Ask the user these questions ONE AT A TIME. After each answer, move to the next. Skip questions the user says aren't relevant.

1. Work style

  • "How should I behave? (e.g., execute without asking, ask before acting, explain reasoning, be concise)"

2. Tech stack

  • "What's your default tech stack? (e.g., Nuxt + Appwrite, Next.js + Supabase, Rails, Swift/macOS, none)"

3. Package manager

  • "Package manager preference? (pnpm, npm, yarn, bun, or N/A)"

4. Deployment

  • "How do you deploy? (e.g., Vercel, Dokploy, Docker, AWS, manual, none)"

5. Git workflow

  • "Git rules? (e.g., never push without asking, auto-push OK, use PRs, conventional commits)"

6. Code quality

  • "Any hard code rules? (e.g., no any, max file length, test required, specific linter)"

7. Skills integration

  • "Should I auto-load skills when a task matches? (yes/no)"

8. Session behavior

  • "Anything special at session start? (e.g., check upstream, read AGENTS.md, run status)"

Output

Before writing, if rules/ already contains .md files:

  1. Read all existing rule files fully — understand the user's current preferences and intent
  2. Back them up: mv rules/ rules.bak.$(date +%Y%m%d%H%M)/ && mkdir rules/
  3. When generating new rules, compare the user's new answers against their existing rules:
    • No conflict: Keep the existing rule as-is in the new output
    • Conflict detected: Explain the conflict to the user, suggest which version is better and why, then ask which to use
    • New rule with no existing equivalent: Add it
  4. The goal is to produce rules that reflect the user's FULL intent — both what they said in this interview AND what they previously established

After collecting answers, generate these files in the skill-genie rules/ directory:

  • rules/router.md — Universal top-level rules
  • rules/session-sync.md — Session start behavior
  • rules/workflow-tools.md — Tool and workflow preferences
  • rules/stack-and-deployment.md — Tech stack and deployment (skip if "none")
  • rules/external-tools.md — Skills and external tool usage

Then run setup.sh to apply them.

Rules format

Each file should be concise Markdown, under 30 lines. Use bullet points. No fluff. Example:

# Workflow and tools

- Prefer CLI over MCP when both can do the job.
- Batch independent operations.
- Verify feature doesn't already exist before creating it.

Important

  • Do NOT include project-specific details — those belong in project AGENTS.md
  • Keep rules universal (apply to any project the user works on)
  • If user says "same as example", copy from rules.example/

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.