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.
npx agentmods add skills/nomarj/sigil/data-context-extractornpx skills add NOMARJ/sigil --skill data-context-extractorgit clone --depth 1 https://github.com/NOMARJ/sigilWhat 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 | $0.00091 | $0.00684 |
| Opus 5 | $0.00046 | $0.00342 |
| Sonnet 5 | $0.00018 | $0.00137 |
| Haiku 4.5 | $0.00009 | $0.00068 |
Grade A, and why
data-context-extractor 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.
How it starts
The opening of the file, as written. The whole thing — 92 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Data Context Extractor
Build a project-specific data skill that teaches Claude your company's data warehouse, terminology, metrics definitions, and common query patterns. Two modes:
Bootstrap Mode
Trigger: No existing data context skill for this project.
Process
-
Schema Discovery
- If database access available: query
information_schemaor equivalent - If not: ask user to paste/upload schema, ERD, or table descriptions
- Discover: tables, columns, types, relationships, row counts
- If database access available: query
-
Tribal Knowledge Interview (ask these questions):
- What are the 5 most common queries your analysts run?
- What metrics does the business track? How are they calculated?
- What's the grain of each major table? (one row = one what?)
- Are there any gotchas? (deleted rows not actually deleted, timezone mismatches, denormalized fields)
- What terminology does the team use that wouldn't be obvious? (internal names, abbreviations)
- What's the data freshness? (real-time, hourly, daily, weekly)
- Which tables join to which? What are the common join patterns?
-
Generate the Skill Write a
data-context/SKILL.mdin the project's.claude/skills/(or.nomark/data/) containing:- Schema summary (tables, key columns, grain, relationships)
- Metrics dictionary (metric name → SQL definition)
- Common query patterns (templated SQL for frequent questions)
- Gotchas and caveats
- Terminology glossary
- Data freshness expectations
Iteration Mode
Trigger: Existing data context skill needs updating.
Process
- Load existing skill
- Ask targeted questions about the gap (new table, new metric, changed business logic)
- Update the relevant section
- Note the change in an amendment log
Output Format
# Data Context — [Project Name]
## Schema Overview
| Table | Grain | Key Columns | Freshness | Notes |
|-------|-------|-------------|-----------|-------|
## Metrics Dictionary
| Metric | Definition (SQL) | Business Context |
|--------|-----------------|-----------------|
## Common Query Patterns
### [Question type]
```sql
-- Template query
Gotchas
- [Gotcha 1]
- [Gotcha 2]
Terminology
| Term | Meaning |
|---|
Amendment Log
| Date | Change | Author |
|---|
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.
- 2d ago First seen · 92 lines · 91 tokens per session scan A 891bececb9b0
data-context-extractor is a skill published in the GitHub repository NOMARJ/sigil (5 stars, last pushed 2d ago), licensed Apache-2.0. It adds 91 tokens to every session and 684 once invoked, about $0.0005 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.
Other skills, from other repositories
sftp-cc
通用 SFTP 上传工具,通过自然语言触发,将本地项目文件上传到远程服务器。支持增量上传、私钥自动绑定与权限修正。.
feature-spec
Creates a complete product feature specification with acceptance criteria, scope, dependencies, and risks. Delegates to the Prometeo (PM) agent.
submit-a-plugin
Submit a bb plugin to the BB Community marketplace. Use whenever a user asks to submit, list, publish, or add a plugin to the BB marketplace, or asks for a marketplace pull request. This skill validates the plugin and release, creates the marketplace entry and icon, and opens the pull request.
regex-mastery
Use this skill when writing regular expressions, debugging pattern matching,optimizing regex performance, or implementing text validation. Triggers on regex, regular expressions, pattern matching, lookahead, lookbehind, named groups, capture groups, backreferences, and any task requiring text pattern matching.
devtools-event-client
Create typed EventClient for a library. Define event maps with typed payloads, pluginId auto-prepend namespacing, emit()/on()/onAll()/onAllPluginEvents() API. Connection lifecycle (5 retries, 300ms), event queuing, enabled/disabled state, SSR fallbacks, singleton pattern. Unique pluginId requirement to avoid event…
openocd
OpenOCD 下载与调试工具,用于探针探测、固件烧录、Flash 擦除、GDB Server 启动、目标复位控制、 Telnet 在线调试(halt/resume/step/寄存器/内存/断点)、GDB 源码级调试,以及 Semihosting/ITM 输出捕获和底层查询。 当用户提到 OpenOCD、ST-Link、CMSIS-DAP、DAPLink、FTDI、烧录固件、擦除 Flash、GDB Server、 reset、interface/target/board 配置、openocd.cfg、在线调试、单步、断点、寄存器查看、 内存读写、semihosting 时自动触发,也兼容 /openocd 显式调用。…