Skip to content
Agentmart
Submit a tool

new-rule

Scaffold a new workflow rule under rules/<kebab-name>/.

Skill by jajupmochi

IndexedMIT★ 1
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/jajupmochi-new-rule

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Scaffold a new workflow rule under rules/<kebab-name>/. Creates RULE.md (frontmatter + body template) and snippet.md (drop-in for downstream CLAUDE.md), plus updates INVENTORY.md and INVENTORY.zh.md in the same edit batch.

Use cases: writing, productivity

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/new-rule

What's inside

Skill name
new-rule
Description
Scaffold a new workflow rule under rules/<kebab-name>/. Creates RULE.md (frontmatter + body template) and snippet.md (drop-in for downstream CLAUDE.md), plus updates INVENTORY.md and INVENTORY.zh.md in the same edit batch.
License
MIT
Instructions
98 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# /new-rule

Scaffold a new workflow rule. Use when you (or Claude) discover a behavior worth standardizing across projects.

## Usage

```
/new-rule <kebab-name>
```

E.g.: `/new-rule no-emoji-in-prose`

## Pre-flight

- Verify `rules/<kebab-name>/` does not already exist (don't clobber)
- Confirm the rule isn't redundant with an existing one (check `INVENTORY.md` table)

## Steps

1. **Create directory**:

   ```bash
   mkdir -p rules/<kebab-name>
   ```

2. **Ask the user** for:
   - One-line description (becomes `description:` frontmatter)
   - Scope: `universal | personal | ui-project | research-pkg | static-site | optional`
   - Rationale: 1-2 sentences on what bug this rule prevents / time it saves
   - Trigger condition: when does this rule kick in?

3. **Write `rules/<kebab-name>/RULE.md`**:

   ```markdown
   ---
   name: <kebab-name>
   description: <one-line>
   scope: <scope>
   rationale: <why-this-rule-exists>
   ---

   # <kebab-name>

   > <one-line summary>

   ## Master TOC

   - [Rule](#rule)
   - [Why](#why)
   - [How to apply](#how-to-apply)
   - [Examples](#examples)
   - [Exceptions](#exceptions)

   ## Rule

   <imperative statement of the rule, with bullet points for clarity>

   ## Why

   <full rationale — what problem this prevents, what time it saves>

   ## How to apply

   <when this rule kicks in; edge cases; companion rules>

   ## Examples

   ✅ Good:
   <concrete scenario>

   ❌ Bad:
   <contrast scenario>

   ## Exceptions

   <when the rule doesn't apply, or when to override>
   ```

4. **Write `rules/<kebab-name>/snippet.md`** — the drop-in version:

   ```markdown
   ## <Rule Name>

   <Compact 3-7 line statement suitable for inclusion in a project's CLAUDE.md via @import>
   ```

5. **Update `rules/README.md`** — add a row to the rule index table.

6. **Update `INVENTORY.md` AND `INVENTORY.zh.md`** — add a row to the Rules section table.

7. **Show the user** the diff and ask for confirmation before committing.

## Companion

- `docs/CONTRIBUTING.md` §"Adding a rule" — formal spec
- `rules/README.md` — index of all rules + scope tag definitions

From jajupmochi/agent-harness, MIT.

More from jajupmochi/agent-harness

Signals

Stars
1
Forks
0
Open issues
0
Last commit (this folder)
Apr 29, 2026 (6 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from jajupmochi

Cite this page

new-rule skill. Agent Mart. https://agentmart.dev/skills/jajupmochi-new-rule (last updated 2026-10-24)