{"id":50760202,"url":"https://github.com/digitalpebble/spruce-sql-advisor","last_synced_at":"2026-06-11T09:01:55.991Z","repository":{"id":354991708,"uuid":"1226210970","full_name":"DigitalPebble/spruce-sql-advisor","owner":"DigitalPebble","description":"A Claude skill that grounds Claude in accurate knowledge for writing and optimising SQL queries against AWS CUR 2.0 data enriched with SPRUCE. Works for FinOps as well as GreenOps.","archived":false,"fork":false,"pushed_at":"2026-05-01T09:52:10.000Z","size":2509,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-01T11:16:08.710Z","etag":null,"topics":["claude-skill","finops","greenops","spruce","sql"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DigitalPebble.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":"NOTICE","maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-01T05:22:20.000Z","updated_at":"2026-05-01T09:52:14.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/DigitalPebble/spruce-sql-advisor","commit_stats":null,"previous_names":["digitalpebble/spruce-sql-advisor"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/DigitalPebble/spruce-sql-advisor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DigitalPebble%2Fspruce-sql-advisor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DigitalPebble%2Fspruce-sql-advisor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DigitalPebble%2Fspruce-sql-advisor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DigitalPebble%2Fspruce-sql-advisor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DigitalPebble","download_url":"https://codeload.github.com/DigitalPebble/spruce-sql-advisor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DigitalPebble%2Fspruce-sql-advisor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34190585,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-11T02:00:06.485Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["claude-skill","finops","greenops","spruce","sql"],"created_at":"2026-06-11T09:01:54.898Z","updated_at":"2026-06-11T09:01:55.964Z","avatar_url":"https://github.com/DigitalPebble.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# SPRUCE SQL Advisor\n\nA [Claude skill](https://docs.claude.com/en/docs/agents-and-tools/agent-skills/overview)\nthat grounds Claude in accurate knowledge for writing and optimising SQL queries against\nAWS CUR 2.0 data enriched with [SPRUCE](https://github.com/DigitalPebble/spruce) greenops\ncolumns.\n\nWhen loaded, the skill makes Claude reliably accurate on:\n\n- CUR 2.0 schema details (column naming, nested arrays, conditional columns)\n- `BILLING_PERIOD` partitioning semantics\n- Engine-specific syntax for **Athena** and **DuckDB**\n- All SPRUCE column meanings and units (carbon, electricity, water)\n\n## Install\n\n1. Download the latest `spruce-sql-advisor.skill` from the\n   [Releases page](../../releases).\n2. In Claude.ai, go to [**Settings → Customize → Skills**](https://claude.ai/customize/skills), click on +, **Create skills** and **Upload a skill**.\n3. Start a new chat and ask a CUR 2.0 SQL question — Claude will load the skill\n   automatically. Alternatively, call it explicitely by typing `/spruce-sql-advisor` in a new chat window.\n\n## Documentation\n\nFull documentation, including example prompts and screenshots, is at\n**[digitalpebble.github.io/spruce-sql-advisor](https://digitalpebble.github.io/spruce-sql-advisor/)**.\n\n## Repository layout\n\n```\nspruce-sql-advisor/             ← repo root\n├── spruce-sql-advisor/         ← the skill itself (gets packaged into .skill)\n│   ├── SKILL.md\n│   ├── LICENSE, NOTICE\n│   └── references/\n├── docs/                       ← GitHub Pages site\n├── .github/workflows/          ← CI: validate + release\n├── README.md, LICENSE, NOTICE\n```\n\nThe skill folder name is repeated by design: `package_skill.py` uses the folder name\nboth as the artefact name (`spruce-sql-advisor.skill`) and as the top-level path inside\nthe zip, and that name must match the skill's `name` frontmatter field.\n\n## Building from source\n\n```bash\ngit clone https://github.com/DigitalPebble/spruce-sql-advisor\ncd spruce-sql-advisor\n\n# Fetch Anthropic's packaging script\ngit clone --depth 1 --filter=blob:none --sparse \\\n  https://github.com/anthropics/skills _anthropic_skills\ngit -C _anthropic_skills sparse-checkout set skills/skill-creator/scripts\n\nPYTHONPATH=_anthropic_skills/skills/skill-creator \\\n  python3 -m scripts.package_skill ./spruce-sql-advisor .\n```\n\n## Licence\n\nApache License 2.0 — see [LICENSE](LICENSE) and [NOTICE](NOTICE).\n\n## Related\n\n- [SPRUCE](https://github.com/DigitalPebble/spruce) — the open-source GreenOps platform\n  this skill is designed to work with.\n- [DigitalPebble](https://digitalpebble.com) — green software consultancy.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitalpebble%2Fspruce-sql-advisor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdigitalpebble%2Fspruce-sql-advisor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitalpebble%2Fspruce-sql-advisor/lists"}