HARDIK-WEB-OSS commented on issue #62500: URL: https://github.com/apache/airflow/issues/62500#issuecomment-4061494283
@jason810496 — POC extended with extraction pipeline and tests. Full system now at: https://github.com/HARDIK-WEB-OSS/airflow/tree/feat/breeze-agent-skill-poc What's in the POC (2 commits): 1. Runtime context detection API (`scripts/ci/prek/breeze_context_detect.py`) Rather than a static label, this is callable code agents execute at runtime. Priority chain: `AIRFLOW_BREEZE_CONTAINER` env var → `/.dockerenv` → `/opt/airflow`. Agents call `get_command('run-tests', test_path='...')` and receive the correct command for their actual context. 2. Skill file at `.github/skills/breeze-contribution/SKILL.md` Placed at the path the existing prek infrastructure already handles — same pattern as `.github/skills/airflow-translations/SKILL.md`. Contains `<!-- agent-skill-sync: -->` markers. Command taxonomy sourced directly from `developer_commands_config.py`. 3. Extraction pipeline (`scripts/ci/prek/extract_agent_skills.py`) Parses the agent-skill-sync markers from SKILL.md and writes `.github/skills/breeze-contribution/skills.json`. Mirrors the `update-breeze-cmd-output` pattern exactly: run it to generate, run it with `--check` to detect drift and exit 1 for CI enforcement. ``` $ python3 scripts/ci/prek/extract_agent_skills.py Written 3 skill(s) to .github/skills/breeze-contribution/skills.json - static-checks - run-tests - system-verify $ python3 scripts/ci/prek/extract_agent_skills.py --check OK: skills.json is in sync with SKILL.md ``` 4. 20 passing tests (`scripts/ci/prek/test_breeze_agent_skills.py`) Covers marker parsing, extraction, drift detection, and all context detection paths. ``` 20 passed in 0.09s ``` The remaining piece is wiring `extract_agent_skills.py --check` as a prek hook entry in `.pre-commit-config.yaml` — the same way `update-breeze-cmd-output` is wired. Happy to add that if this direction looks right. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
