Parse from $ARGUMENTS:
--path <local-path>— analyze a local directory--repo <github-url>— clone from GitHub and analyze--branch <branch>— branch to clone (default: default branch)
Acquire the target:
- If
--repo: clone to temp withgit clone --depth 1 <url> /tmp/gad-re-<name> - If
--path: use the local path directly - If the URL includes
/tree/<branch>/<path>, extract the subdirectory
- If
Run the deep analysis — follow the 5-pass methodology in the skill.
Produce all outputs — REQUIREMENTS.xml, DECISIONS.xml, CONVENTIONS.md, ROADMAP.xml, CONTEXT.md
Clean up — if cloned to temp, remove the temp directory