#13759: feat(skill-creator): add executable example script template
stale
size: S
Cluster:
Skill Improvements and Fixes
## Summary
Add a functional example script template to skill-creator that developers can use immediately without building everything from scratch.
## Changes
The generated example.py now includes:
- CLI argument parsing (--input, --output, --verbose)
- Logging setup with configurable levels
- Working process_data() function with file I/O and error handling
- Concrete pattern guidance in comments (JSON, CSV, API, format conversion)
## Before
Scripts were just stubs with print() and TODO comments. Developers had no reference for CLI patterns.
## After
Generated scripts are immediately runnable, show best practices, and include clear next steps for customization.
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
This PR updates `skills/skill-creator/scripts/init_skill.py` so the skill initializer can generate a runnable `scripts/example.py` template when `--examples` is enabled. The new example script includes argument parsing (`--input/--output/--verbose`), basic logging setup, and a placeholder `process_data()` that reads/writes files, with commented guidance for common patterns (JSON/CSV/API/format conversion).
The main issue found is that the generated script’s `--verbose` flag likely doesn’t actually enable DEBUG output because the logging handler is configured at INFO via `logging.basicConfig(level=logging.INFO, ...)` while only the named logger level is changed.
<h3>Confidence Score: 4/5</h3>
- Mostly safe to merge, but generated example script has a correctness issue around verbose logging behavior.
- Change is isolated to a template string used for generated example scripts, with minimal impact on the initializer logic. The main functional problem is the `--verbose` flag likely not emitting DEBUG logs due to handler/root level filtering, which undermines the intended behavior of the example template.
- skills/skill-creator/scripts/init_skill.py (EXAMPLE_SCRIPT logging configuration)
<!-- greptile_other_comments_section -->
<sub>(2/5) Greptile learns from your feedback when you react with thumbs up/down!</sub>
<!-- /greptile_comment -->
Most Similar PRs
#3933: fix(skills): Make skill scripts executable
by jaysonsantos · 2026-01-29
81.0%
#19664: fix(skills): log skill YAML parsing diagnostics with skill name
by orchidsun · 2026-02-18
71.5%
#5273: fix: skill frontmatter fixes + description improvements (35 skills)
by Terwox · 2026-01-31
71.2%
#8075: fix(skills): add --ignore-scripts to all package managers
by yubrew · 2026-02-03
71.2%
#8873: fix: document skill loading locations in system prompt
by ytfh44 · 2026-02-04
70.1%
#23371: chore: add agentlint/prguard/secretmap skills + gitignore restart.sh
by alexmelges · 2026-02-22
69.6%
#7656: docs(slack): improve skill documentation with thread support and AP...
by pswpswpsw · 2026-02-03
69.2%
#7251: feat(skills): Context-aware dynamic skill loading [AI-assisted]
by cheenu1092-oss · 2026-02-02
69.1%
#15115: fix: pre-load skill docs in cron sessions to prevent hallucinated syn…
by joaolcorreia · 2026-02-13
68.5%
#9925: docs: warn about Python venv placement in skill directories
by kj9kj9qv4m-bit · 2026-02-05
68.4%