intelligence-add-rule

intelligence-add-rule is a skill for Claude Code, Codex 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 CodeCodex

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.

agentmods
npx agentmods add skills/ainova-systems/intelligence-sync/intelligence-add-rule
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, Codex.

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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00009 $0.00736
Opus 5 $0.00005 $0.00368
Sonnet 5 $0.00002 $0.00147
Haiku 4.5 $0.00001 $0.00074

Measured 3d ago against content hash 1e0608253e50, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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.yamlproject.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. 3d 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 5d ago), licensed MIT. It adds 9 tokens to every session and 736 once invoked, about $0.0000 per session on Opus 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

Other skills, from other repositories

talk-like-scarletkc

按 scarletkc 本人的自然表达习惯撰写、改写、润色和翻译文本,覆盖推文、微博、评论、聊天消息、技术观点、项目介绍、GitHub 文本(README、issue、PR、发布说明)和正式通信。当用户要求用自己的口吻写东西、把 AI 腔文字改自然、发推、回评论、点评模型或开发工具、写项目公告、写礼貌但直接的客服或正式邮件,或要求翻译时保留语气和立场,都使用本 skill,即使用户没有点名 scarletkc 或提出风格要求。.

scarletkc/agents · 141 tokens

marketing-copy

Write outbound promotional copy for a product or project: launch and update posts for community platforms and social media, store page descriptions and short blurbs, landing page headlines and calls to action, press-style announcements, and the naming of a product for another language or market. Covers what may be…

scarletkc/agents · 121 tokens

scoped-change

Judgment rules for locating the correct boundary of a requested change: staying inert outside it while completing every required site inside it. Use when scope is ambiguous, a diff touches neighboring surfaces, required dependent edits are unclear, or a proposed compatibility layer, migration, fallback, flag…

scarletkc/agents · 69 tokens

agentic-code-review

Use when reviewing a diff, pull request, branch, or AI-generated code for correctness, security, regression, test, performance, and maintainability risks before merge.

DominikTobureto/awesome-grok-build · 38 tokens

hooksmith

Use when designing or reviewing safe Grok Build hooks for linting, tests, formatting, notifications, command guards, lifecycle automation, or project hook trust decisions.

DominikTobureto/awesome-grok-build · 35 tokens

repo-health-check

Use when auditing a repo before changes to find the smallest safe PR, quality risks, stale docs, missing tests, ignored-file gaps, or agent setup issues. Best first skill for unfamiliar codebases.

DominikTobureto/awesome-grok-build · 44 tokens