intelligence-add-rule

intelligence-add-rule is a skill for Claude Code from ainova-systems/intelligence-sync. It costs 9 tokens per session (736 once invoked), scanned A, original, MIT.

A guided procedure for adding a new project rule: a written instruction that applies to a particular area of a codebase. It chooses an appropriate rule file and checks existing rules for overlap.

In plain words
What is it for?
Use it when a coding project needs a new shared convention for its backend, frontend, deployment setup, tests, or another defined scope.
Why use it?
It reduces duplicate or misplaced instructions and keeps rules organised by project, component, or technical area.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Good fit Use it when a coding project needs a new shared convention for its backend, frontend, deployment setup, tests, or another defined scope.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ainova-systems/intelligence-sync/intelligence-add-rule
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ainova-systems/intelligence-sync --skill intelligence-add-rule
Clone the repo
git clone --depth 1 https://github.com/ainova-systems/intelligence-sync

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for intelligence-add-rule

README.md
[![agentmods](https://agentmods.dev/badge/skills/ainova-systems/intelligence-sync/intelligence-add-rule/github.svg)](https://agentmods.dev/skills/ainova-systems/intelligence-sync/intelligence-add-rule)
Your own site
<a href="https://agentmods.dev/skills/ainova-systems/intelligence-sync/intelligence-add-rule"><img src="https://agentmods.dev/badge/skills/ainova-systems/intelligence-sync/intelligence-add-rule/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for intelligence-add-rule

Your own site · 80×15
<a href="https://agentmods.dev/skills/ainova-systems/intelligence-sync/intelligence-add-rule"><img src="https://agentmods.dev/badge/skills/ainova-systems/intelligence-sync/intelligence-add-rule.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 9 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 736 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00009 $0.00736
Opus 5.5 $0.00004 $0.00294
Sonnet 5.5 $0.00002 $0.00147
Haiku 4.5 $0.00001 $0.00074

Measured 3mo ago against content hash 1e0608253e50, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

intelligence-add-rule scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

intelligence/sync/skills/intelligence-add-rule/SKILL.md · 55 lines

How it starts

The opening of the file, as written. The whole thing — 55 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Add Rule

Steps

  1. Determine rule name from domain (the scope is required):

    • Reuse the existing domain when one fits: list intelligence/rules/. If a rule file covers the target area (e.g., backend.md, frontend.md), extend it. Introduce a new domain only when the scope is materially different from all existing rules.
    • When no existing rule fits, derive the filename from repo structure:
      • Single / root project → use the project codename from intelligence/config.yaml → project.name (e.g., <codename>.md)
      • Backend service / API component → backend.md
      • Frontend / web / UI component → frontend.md
      • Infrastructure, IaC, CI/CD, deployment → devops.md
      • Shared library / common / cross-cutting code → core.md
      • Test suites (e2e, integration) → tests.md
      • Always-loaded global context → context.md
    • If the repo is a monorepo with named components (e.g., apps/billing, services/auth), prefer the component name as the rule name (billing.md, auth.md).
    • Rule filenames match the domain used by skills/agents. If the scope is unclear, ask the user before proceeding.
  2. Check existing rules: Read intelligence/rules/ to detect overlapping scope — favor extending an existing rule over creating a new one.

  3. Determine scope:

    • If paths glob provided — scoped rule with paths: frontmatter
    • If no paths — always-loaded rule (no paths: in frontmatter)
  4. Analyze codebase: Read source files matching the scope to extract:

    • REQUIRED patterns (conventions consistently followed across the codebase — judgment calls expressed as positive defaults)
    • Invariants (true must-nots — safety, output format, security; not judgment calls)
    • Architecture patterns (layer dependencies, module structure)
    • Build and test commands specific to this scope
    • Anti-patterns observed in code, each paired with the positive replacement that should adopt instead
  5. Create rule: Write intelligence/rules/<name>.md:

    ---
    paths:
      - "<glob-pattern>"
    ---
    

Read the full file on GitHub · 55 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 55 lines · 9 tokens per session scan A 1e0608253e50

Subscribe to this mod's changes

intelligence-add-rule is a skill published in the GitHub repository ainova-systems/intelligence-sync (4 stars, last pushed 19d ago), licensed MIT. It adds 9 tokens to every session and 736 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

intelligence-add-rule compared with skills from other repositories

intelligence-add-rule next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
intelligence-add-ruleainova-systems/intelligence-syncSkill419d agoMITA9Claude Code
antigravity-cliscarletkc/agentsSkill23227d agoApache-2.0A45Claude Code, Codex
devin-cliscarletkc/agentsSkill23227d agoApache-2.0A91Claude Code, Codex
grok-cliscarletkc/agentsSkill23227d agoApache-2.0A66Claude Code, Codex
documentationjrenaldi79/harness-engineeringSkill12720d agoMITA45Claude Code, Codex
talk-like-scarletkcscarletkc/agentsSkill23227d agoApache-2.0A118Claude Code, Codex
product-writingscarletkc/agentsSkill23227d agoApache-2.0A40Claude Code, Codex