mako-code-intel

A code-analysis guide for finding structural patterns in JavaScript and TypeScript code and checking selected files for static problems. Structural searches understand code syntax rather than matching text only.

In plain words
What is it for?
Use it to find calls, imports, conditions, hooks, JSX elements, or unsafe code patterns; run focused lint checks; and create a rule draft from a correction.
Why use it?
It helps find code patterns that ordinary text search can miss and limits diagnostics to the files being investigated. It can also help draft a reusable rule from a fix.

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/drhalto/agentmako/mako-code-intel
Any agent
npx skills add drhalto/agentmako --skill mako-code-intel
Clone the repo
git clone --depth 1 https://github.com/drhalto/agentmako

Made for: Claude Code, Codex.

Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 961 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.00050 $0.00961
Opus 5 $0.00025 $0.00481
Sonnet 5 $0.00010 $0.00192
Haiku 4.5 $0.00005 $0.00096

Measured 2d ago against content hash 71c4b44c0e59, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

mako-code-intel 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 2d 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.

mako-ai-claude-plugin/skills/mako-code-intel/SKILL.md · 93 lines

How it starts

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

Mako Code Intel

Use this skill for static code queries that are best answered by syntax-aware search or diagnostics. It is not the general repo-orientation skill; use repo_map through /mako-ai:mako-discovery for that.

Tools

ast_find_pattern

Use for structural code pattern search over indexed TypeScript, TSX, JavaScript, and JSX files.

  • Best for finding syntax shapes that text search may miss.
  • Use for patterns such as function calls, JSX attributes, hook usage, imports, conditionals, or unsafe constructs.
  • Keep searches bounded with focused patterns and file scopes when possible.
  • TSX/JSX snippets starting with {, [, or < also run with parser context, so callers usually do not need to wrap lone object or JSX patterns. Check patternAttempts and match patternVariant when you need to know whether the original or auto-anchored form matched.
  • List metavariables in captures when you need captured values returned.
  • If the result is a false positive that should not recur, use finding_ack from /mako-ai:mako-workflow with the returned ackableFingerprint.

lint_files

Use for focused lint/static diagnostics against selected files.

  • Best after editing files or when reviewing a known suspect area.
  • Defaults to compact output; pass verbosity: "full" or maxFindings when broad diagnostics are actually needed.
  • YAML rule packs under .mako/rules hot-reload in long-running MCP sessions.
  • For helper-bypass checks, rule packs may declare canonicalHelper with a helper symbol and optional path; matching files that already reference the helper are suppressed, while bypasses emit producer/consumer context.
  • Use the returned finding identity/fingerprint when acknowledging reviewed diagnostics.
  • Do not use agent_feedback to suppress a diagnostic; use finding_ack.

extract_rule_template

Use after a fix lands and the removed shape should become future project knowledge.

  • Pass the local git fixCommit; optionally pass baseCommit, filePath, and ruleIdPrefix.
  • Treat the returned draftYaml as a draft. Review broad patterns and caveats before placing it under .mako/rules.
  • Follow with rule_pack_validate and a focused lint_files run before relying on the new rule.

Read the full file on GitHub · 93 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. 2d ago First seen · 93 lines · 50 tokens per session scan A 71c4b44c0e59

Subscribe to this mod's changes

mako-code-intel is a skill published in the GitHub repository drhalto/agentmako (51 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 50 tokens to every session and 961 once invoked, about $0.0003 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-30.