Skip to content

Commit a9da724

Browse files
committed
docs(cli): add tests and docs for agy deprecation (github#1798)
1 parent a668de3 commit a9da724

3 files changed

Lines changed: 14 additions & 3 deletions

File tree

‎AGENTS.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ This eliminates the need for special-case mappings throughout the codebase.
8888
- `folder`: Directory where agent-specific files are stored (relative to project root)
8989
- `commands_subdir`: Subdirectory name within the agent folder where command/prompt files are stored (default: `"commands"`)
9090
- Most agents use `"commands"` (e.g., `.claude/commands/`)
91-
- Some agents use alternative names: `"agents"` (copilot), `"workflows"` (windsurf, kilocode, agy), `"prompts"` (codex, kiro-cli), `"command"` (opencode - singular)
91+
- Some agents use alternative names: `"agents"` (copilot), `"workflows"` (windsurf, kilocode), `"prompts"` (codex, kiro-cli), `"command"` (opencode - singular)
9292
- This field enables `--ai-skills` to locate command templates correctly for skill generation
9393
- `install_url`: Installation documentation URL (set to `None` for IDE-based agents)
9494
- `requires_cli`: Whether the agent requires a CLI tool check during initialization

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ See Spec-Driven Development in action across different scenarios with these comm
181181
| [Mistral Vibe](https://github.com/mistralai/mistral-vibe) | ✅ | |
182182
| [Kimi Code](https://code.kimi.com/) | ✅ | |
183183
| [Windsurf](https://windsurf.com/) | ✅ | |
184-
| [Antigravity (agy)](https://antigravity.google/) | ✅ | |
184+
| [Antigravity (agy)](https://antigravity.google/) | ✅ | Requires `--ai-skills` |
185185
| Generic | ✅ | Bring your own agent — use `--ai generic --ai-commands-dir <path>` for unsupported agents |
186186

187187
## 🔧 Specify CLI Reference
@@ -246,7 +246,7 @@ specify init my-project --ai vibe
246246
specify init my-project --ai bob
247247

248248
# Initialize with Antigravity support
249-
specify init my-project --ai agy
249+
specify init my-project --ai agy --ai-skills
250250

251251
# Initialize with an unsupported agent (generic / bring your own agent)
252252
specify init my-project --ai generic --ai-commands-dir .myagent/commands/

‎tests/test_ai_skills.py‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -661,6 +661,17 @@ def test_ai_skills_without_ai_shows_usage(self):
661661
assert "Usage:" in result.output
662662
assert "--ai" in result.output
663663

664+
def test_agy_without_ai_skills_fails(self):
665+
"""--ai agy without --ai-skills should fail with exit code 1."""
666+
from typer.testing import CliRunner
667+
668+
runner = CliRunner()
669+
result = runner.invoke(app, ["init", "test-proj", "--ai", "agy"])
670+
671+
assert result.exit_code == 1
672+
assert "Antigravity explicit command support is deprecated" in result.output
673+
assert "--ai-skills" in result.output
674+
664675
def test_ai_skills_flag_appears_in_help(self):
665676
"""--ai-skills should appear in init --help output."""
666677
from typer.testing import CliRunner

0 commit comments

Comments
 (0)