CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

pytd

Expert assistance for using pytd (Python SDK) to query and import data with Treasure Data. Use this skill when users need help with Python-based data analysis, querying Presto/Hive, importing pandas DataFrames, bulk data uploads, or integrating TD with Python analytical workflows.

Quality

72%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

Fix and improve this skill with Tessl

tessl review fix ./sdk-skills/python/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Content

50%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

The body delivers strong, mostly executable domain-specific guidance (writer selection, TD time functions, troubleshooting symptoms→solutions), but it is a monolithic ~970-line file with substantial repetition and boilerplate, no progressive disclosure into reference files, and no integrated validation around destructive/batch write operations.

Suggestions

Split the SKILL.md into bundle files: move Writer Types Comparison, Common Issues and Solutions, Advanced Topics, Testing and Development, and Jupyter Notebook Integration into references/ (e.g., references/writers.md, references/troubleshooting.md, references/advanced.md), keeping SKILL.md a lean overview with clearly signaled one-level-deep links (progressive_disclosure).

Cut repetition and boilerplate: state the `pd.DataFrame(result['data'], columns=result['columns'])` conversion and client-initialization pattern once instead of repeating them in every pattern, and drop the generic try/except, test-connection, and performance-testing boilerplate (conciseness).

Add validation checkpoints to destructive/batch write workflows: preview data and verify row counts before `if_exists='overwrite'`, and integrate the 'Verify Data Upload' assert pattern into the load workflows as explicit validate→fix→retry loops; also fix the broken `pd.np.log1p` example (removed in pandas 2.0) and the undocumented `client.query(..., wait=False)` job API (workflow_clarity, actionability).

DimensionReasoningScore

Conciseness

The ~970-line body is noticeably verbose with several padded sections: the conversion pattern `pd.DataFrame(result['data'], columns=result['columns'])` is repeated nearly verbatim in Patterns 1, 4, 5, 'Verify Data Upload', and the Jupyter section; generic try/except boilerplate ('except Exception as e: print(f"Query failed: {e}")') and the 'Testing and Development'/'Performance Testing' sections explain things Claude already knows. It is not a 1 because genuine non-obvious domain knowledge (TD time functions, writer tradeoffs, regional endpoints, Plazma access) is present, but far more than 'some' trimming is needed.

2 / 5

Actionability

Most guidance is concrete and executable: installation commands, client initialization, query/upload code, writer configuration, and DB-API `cursor.fetchmany(batch_size)` batching all give copy-paste-ready coverage of common cases. Not a 5 due to gaps: Pattern 3 calls an undefined `process_event(...)` placeholder, Pattern 1 uses `pd.np.log1p` which is broken under the skill's own pandas 2.0+ requirement (`pd.np` was removed), and the `client.query(..., wait=False)` job API with `.job_id`/`.status()`/`.wait()` does not match pytd's documented dict-returning `query()` interface.

4 / 5

Workflow Clarity

Sequences are clear — the ETL pattern numbers its steps ('# Step 1: Extract', '# Step 3: Load') and the incremental pattern checks MAX(date) before loading — but validation checkpoints are missing or implicit where they matter most: destructive `if_exists='overwrite'` writes proceed with no pre-write verification, and verification lives only in a separate 'Verify Data Upload' appendix rather than integrated validate→fix→retry loops. Per the rubric, batch/destructive database operations without integrated feedback loops cap this dimension at 3.

3 / 5

Progressive Disclosure

No references/, scripts/, or assets/ directories exist, so everything — the Writer Types Comparison, four troubleshooting guides, Advanced Topics, Testing and Development, and Jupyter Notebook Integration — is inlined in a single ~970-line SKILL.md. Section headers are well organized (better than anchor 2's 'no section headers' example), but large amounts of content that clearly belong in separate one-level-deep reference files are inline, matching anchor 3's 'content that should be separate is inline' rather than anchor 2's 'minimal structure'.

3 / 5

Total

12

/

20

Passed

Description

83%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A strong description that clearly states what the skill does and when to use it, with concrete, domain-anchored trigger terms. Minor deductions for generic trailing phrases ('Python-based data analysis') that dilute specificity and create slight overlap risk with general Python data-analysis skills.

DimensionReasoningScore

Specificity

The description lists several concrete actions — 'query and import data with Treasure Data', 'querying Presto/Hive, importing pandas DataFrames, bulk data uploads' — comparable to the anchor-4 example 'Extracts text from PDF files, fills forms, converts pages to images'. It is not a 5 because the trailing phrases 'Python-based data analysis' and 'integrating TD with Python analytical workflows' are generic filler rather than concrete actions, leaving minor gaps in coverage.

4 / 5

Completeness

It explicitly answers both questions: what ('Expert assistance for using pytd (Python SDK) to query and import data with Treasure Data') and when ('Use this skill when users need help with Python-based data analysis, querying Presto/Hive, importing pandas DataFrames, bulk data uploads...'). The 'when' clause contains concrete trigger phrases, matching the anchor-5 good example structure exactly; anchor 4 would require a weaker or less explicit 'when', which is not the case here.

5 / 5

Trigger Term Quality

Natural trigger terms are well covered: 'pytd (Python SDK)', 'Treasure Data', 'TD', 'Presto/Hive', 'pandas DataFrames', 'bulk data uploads' — phrases a user needing this skill would plausibly say. It falls short of anchor 5 (comprehensive coverage including synonyms/extensions) because natural variations the body itself covers, such as 'Jupyter', 'notebook', 'ETL', or 'data pipeline', are absent from the description.

4 / 5

Distinctiveness Conflict Risk

The niche is clear — Treasure Data's Python SDK with distinct triggers ('pytd', 'Presto/Hive', 'Treasure Data') — but 'Python-based data analysis' and 'Python analytical workflows' are broad enough to create minor overlap risk with generic Python/pandas data-analysis skills, fitting anchor 4 ('mostly distinct; minor overlap risk') rather than anchor 5's minimal conflict risk.

4 / 5

Total

17

/

20

Passed

Validation

93%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 15 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

skill_md_line_count

SKILL.md is long (977 lines); consider splitting into references/ and linking

Warning

Total

15

/

16

Passed

Repository

treasure-data/td-skills

Path

sdk-skills/python/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.