AgentStack
SKILL verified MIT Self-run

Intelligence Add Rule

skill-ainova-systems-intelligence-sync-intelligence-add-rule · by ainova-systems

Create new intelligence rule

No reviews yet
0 installs
13 views
0.0% view→install

Install

$ agentstack add skill-ainova-systems-intelligence-sync-intelligence-add-rule

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Intelligence Add Rule? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

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., .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.
  1. Check existing rules: Read intelligence/rules/ to detect overlapping scope — favor extending an existing rule over creating a new one.
  1. Determine scope:
  • If paths glob provided — scoped rule with paths: frontmatter
  • If no paths — always-loaded rule (no paths: in frontmatter)
  1. 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
  1. Create rule: Write intelligence/rules/.md:

```yaml --- paths:

  • ""

--- ```

  1. Write body with sections: REQUIREDInvariantsArchitectureBuild & TestExamplesPatterns to recognize and replace (optional)
  • Lead with REQUIRED (positive defaults) — the LLM follows the positive instruction first
  • Reserve Invariants for true must-nots — security, safety, output format. Use absolute language (MUST / NEVER) only here, never for judgment calls
  • Patterns to recognize and replace is reference documentation of anti-patterns paired with positive replacements — readers recognize the pattern, apply the replacement
  • Examples come from the actual codebase — reference real files
  • Every REQUIRED / Invariant / Pattern is backed by observed code
  1. Update config.yaml if needed: Add source path to sources.rules if rule is in a new directory not yet listed.
  1. Run /intelligence-sync to distribute to all enabled IDE targets.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.