You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Use argparse for CLI argument parsing in server.py
- Use cross-platform webbrowser command in CONTRIBUTING.md
- Fix agent count and hyphenation in tasks file
- Fix test ordering assertions to follow SUPPORTED_AGENTS order
- Add explicit UTF-8 encoding to conftest.py
- Use iter_detection_dirs() in detection.py
- Clarify TOML dependency documentation
- Remove Qwen Code reference from docs
- Simplify test_writer.py fixture
- Add command prefix assertion in test_validation.py
- Show actual agent keys in error messages
- Preserve intentional blank lines in normalization
- Add argument deduplication in generators.py
Copy file name to clipboardExpand all lines: docs/slash-command-generator.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,6 +55,8 @@ This means:
55
55
- ✅ Guaranteed compatibility with your Python installation
56
56
- ✅ Faster import times
57
57
58
+
**Note**: While `tomllib` handles parsing TOML files (reading), the project uses `tomli-w` for writing TOML files (generating command files for Gemini CLI). Both are lightweight dependencies and `tomli-w` is required for generating TOML command files.
59
+
58
60
### Running Commands
59
61
60
62
After installation, use `uv run` to execute the command:
@@ -223,7 +225,7 @@ $ARGUMENTS
223
225
224
226
### TOML Format
225
227
226
-
TOML-based agents (Gemini CLI, Qwen Code) use TOML syntax:
Copy file name to clipboardExpand all lines: tasks/tasks-0003-spec-slash-command-generator.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,11 +25,11 @@
25
25
## Tasks
26
26
27
27
-[x] 1.0 Establish slash command configuration and agent detection foundations
28
-
- Demo Criteria: "Config data models enumerate all 14 agents with accurate directories/formats and detection flags configured tools under pytest validation."
28
+
- Demo Criteria: "Config data models enumerate all 6 agents with accurate directories/formats and detection flags configured tools under pytest validation."
-[x] 1.1 Author failing tests in `tests/test_config.py` that assert required fields and format values for every agent entry.
31
31
-[x] 1.2 Implement `CommandFormat` enum, `AgentConfig` dataclass, and helper accessors in `slash_commands/config.py` to satisfy the tests.
32
-
-[x] 1.3 Populate `SUPPORTED_AGENTS` with all 14 tools, including directory paths, file extensions, and format metadata.
32
+
-[x] 1.3 Populate `SUPPORTED_AGENTS` with all 6 tools, including directory paths, file extensions, and format metadata.
33
33
-[x] 1.4 Draft failing detection tests in `tests/test_detection.py` covering positive, negative, and mixed directory scenarios using `tmp_path` fixtures.
34
34
-[x] 1.5 Implement `detect_agents` (and supporting utilities) in `slash_commands/detection.py` so detection tests pass with deterministic ordering.
35
35
@@ -42,7 +42,7 @@
42
42
-[x] 2.4 Implement `CommandGenerator` base class plus Markdown and TOML subclasses in `slash_commands/generators.py`, including helper factory selection logic.
43
43
-[x] 2.5 Refine generators to normalize whitespace and encoding, updating tests to use snapshot-style comparisons for regression safety.
- Demo Criteria: "Writer loads prompts, generates commands for single and multi-agent selections, ensures directories exist, and reports dry-run results without writes."
47
47
- Proof Artifact(s): "CLI: `pytest tests/test_writer.py -v`; Log: dry-run test output showing file paths and counts."
48
48
-[x] 3.1 Introduce failing writer tests that mock prompt loading and assert correct call sequences for single and multi-agent runs.
0 commit comments