Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/lis186/SourceAtlasnpx agentmods add commands/lis186/sourceatlas/atlas.patternWrote 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.
[](https://agentmods.dev/commands/lis186/sourceatlas/atlas.pattern)<a href="https://agentmods.dev/commands/lis186/sourceatlas/atlas.pattern"><img src="https://agentmods.dev/badge/commands/lis186/sourceatlas/atlas.pattern/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.
<a href="https://agentmods.dev/commands/lis186/sourceatlas/atlas.pattern"><img src="https://agentmods.dev/badge/commands/lis186/sourceatlas/atlas.pattern.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.04667 |
| Opus 5.5 | $0.00000 | $0.01867 |
| Sonnet 5.5 | $0.00000 | $0.00933 |
| Haiku 4.5 | $0.00000 | $0.00467 |
Grade A, and why
atlas.pattern 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.
How it starts
The opening of the file, as written. The whole thing — 595 lines — stays where its author put it; the contents beside it link to each section on GitHub.
SourceAtlas: Pattern Learning Mode
Constitution: This command operates under ANALYSIS_CONSTITUTION.md v1.0
Key principles enforced:
- Article I: High-entropy priority (scan 2-3 best examples, not all)
- Article II: Mandatory directory exclusions
- Article IV: Evidence format (file:line references)
Context
Pattern requested: $ARGUMENTS
Goal: Learn how THIS specific codebase implements the requested pattern, so you can follow the same approach for new features.
Time Limit: Complete in 5-10 minutes maximum.
Cache Check (Highest Priority)
If --force is NOT in arguments, check cache first:
-
Extract pattern name from
$ARGUMENTS(remove--save,--force) -
Convert to filename: spaces→
-, lowercase, remove special characters, truncate to 50 characters- Example:
"api endpoint"→api-endpoint.md - Example:
"very long pattern name that exceeds limit"→very-long-pattern-name-that-exceeds-limit.md(truncated)
- Example:
-
Check cache:
ls -la .sourceatlas/patterns/{name}.md 2>/dev/null -
If cache exists:
- Calculate days since modification
- Use Read tool to read cache content
- Output:
📁 Loading cache: .sourceatlas/patterns/{name}.md (N days ago) 💡 Add --force to re-analyze - If over 30 days, also show:
⚠️ Cache is over 30 days old, recommend re-analysis - Then output:
--- [cache content] - End, do not execute subsequent analysis
-
If cache does not exist: Continue with the analysis flow below
If --force is in arguments: Skip cache check, execute analysis directly
Output Mode (Progressive Disclosure)
Parse output mode parameters from $ARGUMENTS:
| Parameter | Behavior | Use Case |
|---|---|---|
--brief |
Only list files, no full analysis | Quick browse, file selection |
--full |
Force full analysis of all found files | Deep learning |
| (no parameter) | Smart mode: ≤5 files→full analysis; >5 files→show selection interface | Default |
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.
- 3mo ago First seen · 595 lines · 0 tokens per session scan A 72ea3c946872
atlas.pattern is a command published in the GitHub repository lis186/SourceAtlas (49 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 4,667 tokens. 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.
atlas.pattern compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| atlas.patternlis186/SourceAtlas | Command | 49 | 1mo ago | MIT | A | 0 | Claude Code |
| checklistgithub/spec-kit | Command | 153k | today | MIT | A | 13 | Claude Code |
| clarifygithub/spec-kit | Command | 153k | today | MIT | A | 27 | Claude Code |
| specifygithub/spec-kit | Command | 153k | today | MIT | A | 13 | Claude Code |
| analyzegithub/spec-kit | Command | 153k | today | MIT | A | 26 | Claude Code |
| convergegithub/spec-kit | Command | 153k | today | MIT | A | 35 | Claude Code |
| implementgithub/spec-kit | Command | 153k | today | MIT | A | 14 | Claude Code |