Local SQL (SQLite)
暂无简介
- License 许可
- MIT
- 所属仓库
- rhCat/skillChip
- 最近更新
- 2026-07-31
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- Local SQL (SQLite)
- perks
- [ "query", "exec" ]
- skill
- sqlite
02 资源文件 17
- 其他blueprint.drawio2.7 KB
- 参考文档blueprint.json3.7 KB
- 资产文件blueprint.svg8.9 KB
- 参考文档index.json1.8 KB
- 参考文档ledger.json317 B
- 参考文档perks.json401 B
- 参考文档perks/exec/manifesto.json375 B
- 参考文档perks/exec/metadata.json721 B
- 参考文档perks/exec/src/contracts.json403 B
- 脚本perks/exec/src/sqlite_exec.sh836 B
- 参考文档perks/exec/test/case.json191 B
- 其他perks/exec/test/fixture/migration.sql86 B
- 参考文档perks/query/manifesto.json366 B
- 参考文档perks/query/metadata.json547 B
- 参考文档perks/query/src/contracts.json404 B
- 脚本perks/query/src/sqlite_query.sh736 B
- 参考文档perks/query/test/case.json365 B
03 SKILL.md 正文
sqlite — Local SQL (SQLite)
Query a local SQLite database (read-only) or apply a migration script to it (destructive), through proven, contract-bound pathways under oversight. You never run SQL directly; you submit a task-ledger and the framework validates → composes → compiles → oversees → executes it.
What to look out for
Each tool emits one line of structured JSON (the audit + debug log) and writes its artifacts under
record_store. LOGS TO CHECK: that line + the named report and the executor run-ledger
(${record_store}/run-ledger.json).
Perks
| perk | tool | nature |
|---|---|---|
query |
sqlite_query |
read-only / safe — sqlite3 -readonly → query_result.txt |
exec |
sqlite_exec |
destructive — applies a .sql script → exec_applied.log |
The query perk opens the database read-only and always writes a result file (a note if the db is
missing). The exec perk is the destructive, file-based variant: it applies a .sql migration file
to the database in a single pass; its destructiveness is declared via "destructive": true (the SQL
itself comes from the file at runtime).
How to use it
Pick a perk, copy ledger.json → task-ledger.json, fill its vars + record_store, then
validate → compose → compile → oversight → executor. The blueprint is perk-agnostic — it
describes the lifecycle and the guardrails; a perk supplies the concrete, contract-bound how.
04 同仓库更多 Skills
Vercel Deploy
暂无简介
Audio Transcribe
暂无简介
Speech (OpenAI TTS)
暂无简介
Skill Installer
暂无简介
demo-skill
A demo skill used as a test fixture for the validate perk. Use when checking that quick_validate.py accepts a well-formed SKILL.md.
demo-skill
A demo skill used as a test fixture for generating agents/openai.yaml. Use when validating the gen_openai_yaml perk.