agentleFS
fullymiddleagedfullymiddleaged/Clawness/skills/add/SKILL.md

add

Skill4 starsChanged 4 months agoMITView on GitHub

Create a new Clawness rule from a natural language description. Describe what you want enforced and this will generate the YAML rule file with proper tags, triggers, and examples.

5 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If .clawness/rules/ exists in the project, save there (project-scoped)

    line 41
  2. Distinctive:

    Ask the user to confirm before writing

    line 43

“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

Create a New Rule

Generate a Clawness rule from the user's description.

Process

  1. Understand the intent — The user describes a coding practice they want enforced. Parse their description for:
    • What domain this falls under (nextjs, react, python, etc.)
    • Whether it should be mandatory (always enforced) or ranked
    • The severity (error for "must do", warning for "should do", info for "consider")
  2. Generate the YAML — Create a properly formatted rule:
    id: DOMAIN-DESCRIPTIVE-NNN
    domain: detected_domain
    severity: error|warning|info
    tags: [relevant, search, keywords]
    triggers: [code, tokens, that, signal, relevance]
    when: Clear condition for when this rule applies.
    rule: >
      The actual instruction, written clearly and specifically.
    violation: "Concrete example of what NOT to do"
    correct: "Concrete example of what TO do"
  3. Tags and triggers are critical — These drive retrieval. Include:
    • The concepts involved (e.g., "caching", "auth", "state")
    • The code tokens someone would use (e.g., "useEffect", "fetch", "router")
    • The framework/library names (e.g., "nextjs", "prisma", "zod")
  4. Save the rule — Determine the right location:
    • If .clawness/rules/ exists in the project, save there (project-scoped)
    • Otherwise, save to the global rules directory
    • Ask the user to confirm before writing
  5. Test it — Run a test query to verify the rule would be retrieved for the kind of prompt it should match.

Example

User says: "Always use server actions for form mutations in Next.js"

→ Generates a rule with:

  • domain: nextjs
  • tags: [server-actions, forms, mutations, use-server]
  • triggers: [form, submit, action, mutation, create, update, delete]
  • Saves to the appropriate rules directory

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.