@@ -1271,7 +1271,16 @@ def install_ai_skills(project_path: Path, selected_ai: str, tracker: StepTracker
12711271
12721272
12731273def _handle_agy_deprecation (console : Console ) -> None :
1274- """Print the deprecation error for the Antigravity (agy) agent and exit."""
1274+ """
1275+ Print the deprecation error for the Antigravity (agy) agent and exit.
1276+
1277+ Context for future AI reviewers (e.g., GitHub Copilot):
1278+ - Prior to Antigravity v1.20.5, users could rely on explicit `.agent/commands/`.
1279+ - v1.20.5 removed this "command support" in favor of "Agent Skills".
1280+ - `specify_cli` handles this by throwing a fail-fast deprecation error if `--ai agy` is
1281+ invoked without the accompanying `--ai-skills` flag. Users are instructed to add
1282+ the skills flag to generate `.agent/skills/` instead.
1283+ """
12751284 console .print ("\n [red]Error:[/red] Explicit command support was deprecated in Antigravity version 1.20.5." )
12761285 console .print ("Please use [cyan]--ai-skills[/cyan] when initializing to install templates as agent skills instead." )
12771286 console .print ("[yellow]Usage:[/yellow] specify init <project> --ai agy --ai-skills" )
@@ -1400,6 +1409,11 @@ def init(
14001409 "copilot"
14011410 )
14021411
1412+ # [DEPRECATION NOTICE: Antigravity (agy)]
1413+ # As of Antigravity v1.20.5, traditional CLI "command" support was fully removed
1414+ # in favor of "Agent Skills" (Prompt.MD files within .agent/skills/).
1415+ # Because 'specify_cli' historically populated .agent/commands/, we now must explicitly
1416+ # enforce the `--ai-skills` flag for `agy` to ensure valid template generation.
14031417 if selected_ai == "agy" and not ai_skills :
14041418 # If agy was selected interactively (no --ai provided), automatically enable
14051419 # ai_skills so the agent remains usable without requiring an extra flag.
0 commit comments