Index of every page on this site: llms.txt
All skills
mia-cx avatar

/refine-rule

@7acdf71
by mia.cxmia-cx/skills4 stars
Run it yourself

Audit and slim always-loaded guidance: AGENTS.md, CLAUDE.md, Cursor rules.

Use this Skill: https://skilld.dev/gh/mia-cx/skills/refine-rule

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈22 tokens for metadata: the name and description. ≈288 when used: this file.

How this Skill uses context

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

This Skill turns off automatic use in Claude Code. Its description stays out of the automatic Skill list by default.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Refine rule

Always-loaded files pay their cost every session; prune hardest here. Apply agent-copy; Read it first if not already loaded. Checks specific to rule and memory files:

  • Right file for the audience. Harness-agnostic guidance in AGENTS.md; harness-specific mechanics in that harness's file (CLAUDE.md, .cursor/rules/*.mdc). Cursor rules scope by glob; prefer a scoped rule over an always-apply one.
  • Fresh readers. State the current rule directly. Remove comparisons with discarded rules absent from the document, following agent-copy's fresh-reader check.
  • When a skill covers the topic, the memory file keeps one pointer line. Restated bullets drift from the skill.
  • Delete what context will supply. "When working on X, do Y" is suspect: Y is often self-evident inside X, visible in the files being edited or surfaced by typecheck, lint, or tests. Can be found ≠ will be encountered; facts in obscure corners stay written down.
  • Under 50 lines per section. Longer is sediment.
  • Verify every fact. Paths, model names, and tool flags rot silently in files nothing typechecks.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts3mo3 checks · Risk SAFE
  • Gen Agent Trust Hub3mo

    No security issues detected. The skill provides purely instructional guidelines for auditing and optimizing agent configuration files.

  • Socket3mo

    No alerts

  • Snyk3mo

    Risk: LOW · No issues

Signed by skilld at 7acdf71. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 3 days ago.

Activeupdated last month
disable-model-invocation
true

README badge

README badge for mia-cx/skills/refine-rule