← 返回 Skills 市场
clarezoe

Init Rules

作者 clarezoe · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ⚠ suspicious
10
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install init-rules
功能描述
Interactively generate personalized agent rules. Asks about tech stack, work style, and preferences, then writes customized rule files. Use when user says "i...
使用说明 (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/
安全使用建议
Review the generated rule changes before allowing this skill to write anything. Do not let it run setup.sh unless you know exactly which setup.sh will run and have inspected what it does. Consider manually copying the generated markdown into rules/ instead of allowing the skill to replace the whole directory.
能力评估
Purpose & Capability
The stated purpose is to interview the user and generate personalized Skill Genie rule files, which matches most of the artifact instructions. However, the workflow also moves and recreates the whole rules directory and runs setup.sh, which goes beyond simple file generation.
Instruction Scope
The instructions tell the agent to back up and replace rules/ with a directory-wide mv command when existing markdown rules are present, and later to run setup.sh. These actions are under-scoped because they do not require an explicit runtime confirmation or clearly identify the exact setup script path and effects.
Install Mechanism
The published artifact contains only README.md and SKILL.md markdown files, with no bundled executable script or package install step. Static scan reported clean and VirusTotal telemetry was absent.
Credentials
Writing rules for Skill Genie is expected, but wholesale rules directory replacement and execution of a local setup.sh are broader local-environment actions than the README's interview-and-generate description communicates.
Persistence & Privilege
The generated rule files are persistent agent-behavior configuration. Changing them in bulk and applying them through setup.sh can affect future agent sessions, so the lack of clear confirmation and script scoping is a material review concern.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install init-rules
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /init-rules 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
Add OpenCode, Kiro, Devin, Codex, Cursor, and Windsurf skill compatibility
v1.0.1
Normalize SKILL.md frontmatter for OpenClaw, Hermes, and Claude compatibility
元数据
Slug init-rules
版本 1.0.2
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

Init Rules 是什么?

Interactively generate personalized agent rules. Asks about tech stack, work style, and preferences, then writes customized rule files. Use when user says "i... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 10 次。

如何安装 Init Rules?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install init-rules」即可一键安装,无需额外配置。

Init Rules 是免费的吗?

是的,Init Rules 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Init Rules 支持哪些平台?

Init Rules 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Init Rules?

由 clarezoe(@clarezoe)开发并维护,当前版本 v1.0.2。

💬 留言讨论