.claude/skills/setup-dev-context/SKILL.md
# /setup-dev-context — Developer Context Setup > Standalone skill for teams integrating AI Analyst into development workflows. > Most users (PMs, execs, DS) never need this — only teams doing codebase integration. ## Trigger Invoked as `/setup-dev-context` ## Purpose Collects codebase-specific context to help AI Analyst understand your development environment. This enables more accurate SQL generation, schema awareness, and integration with your existing data infrastructure. ## Prerequisites
npx skillsauth add ai-analyst-lab/ai-analyst .claude/skills/setup-dev-contextInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Standalone skill for teams integrating AI Analyst into development workflows. Most users (PMs, execs, DS) never need this — only teams doing codebase integration.
Invoked as /setup-dev-context
Collects codebase-specific context to help AI Analyst understand your development environment. This enables more accurate SQL generation, schema awareness, and integration with your existing data infrastructure.
/setup interview (Phases 1-2) must be completed first.knowledge/setup-state.yaml to verify phase_2.status: complete/setup first to configure your profile and data connection."Ask the user:
I'll ask a few questions about your development environment to provide better support.
1. **Repository type:** What kind of codebase is this?
- [ ] Analytics/data warehouse (dbt, SQL files, ETL)
- [ ] Application backend (API, services)
- [ ] Full-stack application
- [ ] Data science / ML project
- [ ] Other: ___
Record response in .knowledge/user/dev-context.yaml under codebase.type.
Ask the user:
2. **Data layer:** How is your data organized?
- Database type: (Postgres, BigQuery, Snowflake, DuckDB, other)
- Schema naming convention: (e.g., `analytics.`, `public.`, `dbt_prod.`)
- Key tables location: (path to schema definitions, dbt models, etc.)
Record under codebase.data_layer.
Ask the user:
3. **SQL conventions:** Does your team follow specific patterns?
- Naming: snake_case / camelCase / other
- Date handling: timezone-aware? Default timezone?
- NULL handling: COALESCE patterns? Default values?
- Any team-specific SQL style guide? (path or URL)
Record under codebase.sql_conventions.
Ask the user:
4. **Integration points:** Where does AI Analyst fit in your workflow?
- [ ] Ad-hoc analysis only (no integration needed)
- [ ] Reads from dbt models
- [ ] Connects to production replica
- [ ] Uses exported CSV/Parquet files
- [ ] Accesses data warehouse directly
- Other: ___
Record under codebase.integration.
Ask the user:
5. **File conventions:** (optional)
- Where do analysis outputs go? (default: `outputs/`)
- Any naming conventions for SQL files?
- Git branch strategy for analysis work?
Record under codebase.file_conventions.
Save collected context to .knowledge/user/dev-context.yaml:
schema_version: 1
created: "{{DATE}}"
last_updated: "{{DATE}}"
codebase:
type: null # analytics | backend | fullstack | data-science | other
data_layer:
database: null # postgres | bigquery | snowflake | duckdb | other
schema_prefix: null
models_path: null # path to dbt models or schema definitions
sql_conventions:
naming: snake_case
timezone_aware: false
default_timezone: UTC
null_handling: null
style_guide: null
integration:
mode: null # adhoc | dbt | replica | exported | direct
details: null
file_conventions:
output_dir: outputs/
sql_naming: null
git_strategy: null
Update .knowledge/setup-state.yaml:
dev_context:
status: complete
completed_at: "{{DATE}}"
Developer context saved. AI Analyst will now:
- Use your schema prefix ({{schema_prefix}}) in SQL queries
- Follow your team's SQL conventions
- Output files to {{output_dir}}
You can update this anytime with `/setup-dev-context`.
/setup-dev-context reset — Clears dev-context.yaml and resets to defaults.
testing
# Skill: {{BLANK_1_SKILL_NAME}} ## Purpose {{BLANK_2_WHEN_TO_FIRE}} ## When to Use Fires automatically when the user asks Claude to do something that matches the trigger condition above. ## Instructions 1. Detect the trigger condition 2. Execute your guardrail check 3. If the check matters, print a clear, visible warning with "{{BLANK_3_SIGNATURE_PHRASE}}" as the first line 4. Continue with the analysis, incorporating the warning into the output ## Anti-Patterns - Do not fire when the condit
development
# Skill: Visualization Patterns ## Purpose Ensure every chart Claude Code produces follows high-quality design standards with named themes, consistent styling, and clear data communication. ## When to Use Apply this skill whenever generating a chart, graph, or data visualization. Always apply the active theme unless the user specifies otherwise. Default theme: `minimal`. ## Instructions ### Pre-flight: Load Learnings Before executing, check `.knowledge/learnings/index.md` for relevant entrie
development
# Skill: Triangulation / Sanity Check ## Purpose Cross-reference analytical findings against multiple data sources, external benchmarks, and common sense to catch errors before they become bad decisions. ## When to Use Apply this skill after every analysis, before presenting findings to stakeholders, and whenever a result seems surprising. If a finding would change a decision, it MUST be triangulated first. ## Instructions ### Triangulation Framework Every finding gets checked through four
data-ai
# Skill: Tracking Gap Identification ## Purpose Assess whether the data needed for an analysis actually exists, identify what's missing, and produce prioritized instrumentation requests for engineering when gaps are found. ## When to Use Apply this skill after the Data Explorer agent inventories available data, when an analysis requires data that might not exist, or when initial query results suggest incomplete tracking. Run before committing to an analysis approach. ## Instructions ### Gap