Skip to content

Commit d596584

Browse files
wilmaontherunclaude
andcommitted
Move data/skills one level above spark/ to felderize root
skills are dialect-agnostic rules; placing at data/skills/ makes the directory structure cleaner for future dialects alongside spark/. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent e088426 commit d596584

File tree

4 files changed

+2
-4
lines changed

4 files changed

+2
-4
lines changed

python/felderize/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ Environment variables (set in `.env`):
119119

120120
## How it works
121121

122-
1. Loads translation rules from a single skill file (`spark/data/skills/spark_skills.md`)
122+
1. Loads translation rules from a single skill file (`data/skills/spark_skills.md`)
123123
2. Sends Spark SQL to the LLM with rules, validated examples, and relevant Feldera SQL documentation (from `docs.feldera.com/docs/sql/`)
124124
3. Parses the translated Feldera SQL from the LLM response
125125
4. Optionally validates output against the Feldera compiler, retrying with error feedback if needed
File renamed without changes.

python/felderize/pyproject.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ felderize = "spark"
2020

2121
[tool.setuptools.package-data]
2222
felderize = [
23-
"data/skills/*.md",
24-
"data/skills/**/*.md",
2523
"data/samples/*.md",
2624
"data/demo/*.sql",
2725
]

python/felderize/spark/skills.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
def load_skills(skills_dir: str | Path | None = None) -> str:
1111
"""Load all SKILL.md files and return a combined prompt string."""
1212
if skills_dir is None:
13-
skills_dir = Path(__file__).resolve().parent / "data" / "skills"
13+
skills_dir = Path(__file__).resolve().parent.parent / "data" / "skills"
1414
else:
1515
skills_dir = Path(skills_dir)
1616

0 commit comments

Comments
 (0)