Skip to content

TD Skills for Claude Code

TD Skills are pre-built Claude Code plugins that enhance AI assistance for Treasure AI workflows.

Getting Started

Launch Claude Code with tdx claude to get all TD Skills pre-installed and ready to use.

Available Skills

SQL Skills (sql-skills)

Query writing, optimization, and engine-specific assistance. View on GitHub

SkillDescription
trinoTD Trino SQL with TD-specific functions (td_interval, td_time_range, td_time_string)
hiveTD Hive SQL with Hive-only features (lateral view, explode, MAPJOIN)
trino-optimizerPerformance optimization: CTAS, UDP bucketing, magic comments, approx functions
trino-to-hive-migrationConvert Trino queries to Hive when memory errors occur
trino-cliTrino CLI for interactive queries, batch mode, output formats
td-mcpTD MCP server setup for Claude Code integration
time-filteringAdvanced td_interval patterns and partition pruning

Workflow Skills (workflow-skills)

Workflow orchestration and automation. View on GitHub

SkillDescription
digdagTreasure Workflow (digdag) syntax, td> operator, scheduling
workflow-managementDebugging, monitoring, retry/backfill patterns, alerting
dbtdbt with TD Trino: profiles.yml setup, override macros, TD_INTERVAL

tdx Skills (tdx-skills)

CDP, Engage, workflow, and Foundry agent operations with the tdx CLI. These ship inside tdx, so they always match the installed commands. View source

SkillDescription
tdx-basicCore tdx CLI operations, authentication, context management
parent-segmentManage CDP parent segments with YAML configs
parent-segment-analysisQuery and analyze parent segment data
segmentManage CDP child segments with rules and activations
validate-segmentValidate segment YAML syntax before pushing
activationConfigure activations that export audiences to destinations
connector-configConfigure connector_config for segment/journey activations
journeyCreate CDP journey definitions with stages and steps
validate-journeyValidate journey YAML configurations
engageManage Engage campaigns, workspace resources, and campaign readiness
workflowManage Treasure Workflow projects, sessions, and secrets with tdx wf
foundry-agentBuild Foundry agents with tdx agent pull and tdx agent push
foundry-agent-testTest Foundry agents with tdx agent test
foundry-agent-promptWrite effective system prompts for Foundry agents

Installation

Pre-installed with tdx claude, tdx codex, and tdx pi

tdx claude installs the tdx Skills into Claude Code's skills folder. tdx codex and tdx pi install them into ~/.agents/skills. No manual installation required.

To install the tdx Skills yourself, for one project, for your user account, or into a folder, use tdx skill:

tdx skill install --agent claude-code codex pi   # this project
tdx skill install --global --agent claude-code   # your user account
tdx skill install --dir ./skills                 # an exact folder

Don't install tdx-skills from the Claude Code marketplace. tdx installs its own copy, and a second copy would load every skill twice.

To install the other TD Skills with Claude Code's /plugin install command:

# Install all skills from a plugin
/plugin install sql-skills@td-skills
/plugin install workflow-skills@td-skills

# Or install individual skills
/plugin install sql-skills/trino@td-skills
/plugin install workflow-skills/digdag@td-skills

Usage Examples

SQL Skills

> "Help me optimize this Trino query"
> "Convert this SQL to Hive"
> "How do I filter by the last 7 days using td_interval?"

Workflow Skills

> "Create a Digdag workflow that runs daily at 6am"
> "Debug this workflow failure"
> "Set up dbt with Treasure AI"

tdx Skills

> "Create a segment for high-value customers"
> "Set up an activation to Salesforce"
> "Build a welcome journey with email and wait steps"
> "Validate my segment YAML"

More Information

See the td-skills repository for detailed documentation and skill-specific guides.