cli-usereq 0.70.0__tar.gz → 0.72.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. {cli_usereq-0.70.0/src/cli_usereq.egg-info → cli_usereq-0.72.0}/PKG-INFO +52 -66
  2. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/README.md +51 -65
  3. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/pyproject.toml +2 -2
  4. {cli_usereq-0.70.0 → cli_usereq-0.72.0/src/cli_usereq.egg-info}/PKG-INFO +52 -66
  5. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/src/cli_usereq.egg-info/SOURCES.txt +4 -3
  6. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/src/usereq/__init__.py +1 -1
  7. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/src/usereq/cli.py +341 -992
  8. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/src/usereq/resources/prompts/analyze.md +2 -2
  9. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/src/usereq/resources/prompts/change.md +15 -15
  10. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/src/usereq/resources/prompts/check.md +2 -2
  11. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/src/usereq/resources/prompts/cover.md +15 -15
  12. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/src/usereq/resources/prompts/create.md +1 -1
  13. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/src/usereq/resources/prompts/fix.md +15 -15
  14. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/src/usereq/resources/prompts/flowchart.md +11 -11
  15. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/src/usereq/resources/prompts/implement.md +13 -13
  16. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/src/usereq/resources/prompts/new.md +14 -14
  17. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/src/usereq/resources/prompts/readme.md +11 -11
  18. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/src/usereq/resources/prompts/recreate.md +11 -11
  19. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/src/usereq/resources/prompts/refactor.md +15 -15
  20. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/src/usereq/resources/prompts/references.md +10 -10
  21. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/src/usereq/resources/prompts/renumber.md +10 -10
  22. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/src/usereq/resources/prompts/workflow.md +11 -11
  23. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/src/usereq/resources/prompts/write.md +1 -1
  24. cli_usereq-0.72.0/src/usereq/resources/prompts-version.txt +1 -0
  25. cli_usereq-0.72.0/src/usereq/resources/templates/Agentic_Text_Authoring_Guidance.md +214 -0
  26. {cli_usereq-0.70.0/src/usereq/resources/docs → cli_usereq-0.72.0/src/usereq/resources/templates}/Document_Source_Code_in_Doxygen_Style.md +19 -0
  27. {cli_usereq-0.70.0/src/usereq/resources/docs → cli_usereq-0.72.0/src/usereq/resources/templates}/Requirements_Template.md +2 -22
  28. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/tests/test_cli.py +477 -387
  29. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/tests/test_dependency_manifests.py +1 -1
  30. cli_usereq-0.70.0/src/usereq/resources/prompts-version.txt +0 -1
  31. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/LICENSE +0 -0
  32. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/setup.cfg +0 -0
  33. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/src/cli_usereq.egg-info/dependency_links.txt +0 -0
  34. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/src/cli_usereq.egg-info/entry_points.txt +0 -0
  35. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/src/cli_usereq.egg-info/requires.txt +0 -0
  36. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/src/cli_usereq.egg-info/top_level.txt +0 -0
  37. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/src/usereq/__main__.py +0 -0
  38. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/src/usereq/compress.py +0 -0
  39. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/src/usereq/compress_files.py +0 -0
  40. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/src/usereq/doxygen_parser.py +0 -0
  41. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/src/usereq/find_constructs.py +0 -0
  42. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/src/usereq/generate_markdown.py +0 -0
  43. {cli_usereq-0.70.0/src/usereq/resources/docs → cli_usereq-0.72.0/src/usereq/resources/templates}/HDT_Test_Authoring_Guide.md +0 -0
  44. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/src/usereq/source_analyzer.py +0 -0
  45. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/src/usereq/static_check.py +0 -0
  46. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/src/usereq/token_counter.py +0 -0
  47. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/tests/test_analyzer_cli.py +0 -0
  48. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/tests/test_analyzer_comments.py +0 -0
  49. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/tests/test_analyzer_core.py +0 -0
  50. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/tests/test_analyzer_errors.py +0 -0
  51. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/tests/test_analyzer_format.py +0 -0
  52. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/tests/test_analyzer_helpers.py +0 -0
  53. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/tests/test_compress.py +0 -0
  54. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/tests/test_doxygen_parser.py +0 -0
  55. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/tests/test_files_commands.py +0 -0
  56. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/tests/test_find_constructs.py +0 -0
  57. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/tests/test_find_constructs_comprehensive.py +0 -0
  58. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/tests/test_generate_markdown.py +0 -0
  59. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/tests/test_helpers.py +0 -0
  60. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/tests/test_import_isolation.py +0 -0
  61. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/tests/test_pre_release_check.py +0 -0
  62. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/tests/test_release_workflow.py +0 -0
  63. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/tests/test_source_analyzer.py +0 -0
  64. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/tests/test_static_check.py +0 -0
  65. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/tests/test_token_counter.py +0 -0
  66. {cli_usereq-0.70.0 → cli_usereq-0.72.0}/tests/test_update_check.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cli-usereq
3
- Version: 0.70.0
3
+ Version: 0.72.0
4
4
  Summary: Initialize a project with prompts, agents, and templates from the useReq repository.
5
5
  Author: Ogekuri
6
6
  License: GNU GENERAL PUBLIC LICENSE
@@ -709,7 +709,7 @@ Dynamic: license-file
709
709
  > * **No Support or Feature Requests:** Please **do not** open issues, bug reports, or feature requests. They will not be addressed or accepted at this stage of development.
710
710
  > * **No Warranty:** This software is provided **"AS IS"**, without warranty of any kind, express or implied. You may use it strictly for **testing and evaluation purposes** at your own sole risk.
711
711
 
712
- # useReq / req (0.70.0)
712
+ # useReq / req (0.72.0)
713
713
 
714
714
  <p align="center">
715
715
  <img src="https://img.shields.io/badge/python-3.11%2B-3776AB?style=flat-square&logo=python&logoColor=white" alt="Python 3.11+">
@@ -720,8 +720,8 @@ Dynamic: license-file
720
720
  </p>
721
721
 
722
722
  <p align="center">
723
- <strong>The `req` CLI provisions requirements-driven development prompts for LLM agents.</strong><br>
724
- In more detail: useReq packages a catalog of requirements-engineering prompts (write, create, change, implement, check, and more) and installs them as user-level prompts, commands, skills, and agents for the CLIs and agents you already use — exposed as `/req-<name>`, `/req:<name>`, `/skill:req-<name>`, or `$req-<name>` depending on the provider. It also ships an embedded source-analysis toolkit (token counting, references, compression, construct extraction, static checks) that operates on your project across 20 programming languages, plus git-worktree helpers for parallel task execution. Everything is driven by one user-global configuration file (`~/.config/usereq/config.json`); nothing is written into your project repository. It runs as a Python package (installed as `req` or `usereq`) or directly via `uvx`.
723
+ <strong>The `req` CLI provisions requirements-driven development skills for LLM agents.</strong><br>
724
+ In more detail: useReq packages a catalog of requirements-engineering prompts (write, create, change, implement, check, and more) and installs them as user-level skills for the CLIs and agents you already use — exposed as `/skill:req-<name>` or `$req-<name>` depending on the provider. It also ships an embedded source-analysis toolkit (token counting, references, compression, construct extraction, static checks) that operates on your project across 20 programming languages, plus git-worktree helpers for parallel task execution. Everything is driven by one user-global configuration file (`~/.config/usereq/config.json`); nothing is written into your project repository. It runs as a Python package (installed as `req` or `usereq`) or directly via `uvx`.
725
725
  </p>
726
726
 
727
727
  <p align="center">
@@ -742,7 +742,7 @@ In more detail: useReq packages a catalog of requirements-engineering prompts (w
742
742
  The highlights below are what give the most value day-to-day:
743
743
 
744
744
  - **Drives development through requirement changes**, keeping the work under control with an uninterrupted linear progression.
745
- - **One catalog, many CLIs**: a single prompt/skill/agent catalog published to pi.dev, Antigravity, Claude Code, OpenAI Codex, and OpenCode through a common interface.
745
+ - **One catalog, many CLIs**: a single skill catalog published to pi.dev, Antigravity, Claude Code, OpenAI Codex, OpenClaw, and OpenCode through a common interface.
746
746
  - **LLM-optimized documentation**: creates and maintains a *Software Requirements Specification* (SRS) plus `WORKFLOW.md`, `REFERENCES.md`, and `FLOWCHART.md` for new or existing projects, tuned for LLM-agent reasoning.
747
747
  - **Embedded source analysis** for 20 languages (Python, C, C++, C#, Rust, JavaScript, TypeScript, Java, Go, Ruby, PHP, Swift, Kotlin, Scala, Lua, Shell, Perl, Haskell, Zig, Elixir): token counting, reference markdown, compression, and construct extraction.
748
748
  - **Configurable static analysis** with Pylance, Ruff, or arbitrary Command-Line checkers — sensible defaults included, with per-checker pre-flight validation that never blocks the run.
@@ -771,19 +771,19 @@ uvx --from cli-usereq req --help
771
771
  uvx --from git+https://github.com/Ogekuri/CLI-useReq.git req --help
772
772
  ```
773
773
 
774
- **2. Configure** — enable a provider (configuration only; nothing is installed yet, all providers are disabled by default):
774
+ **2. Configure** — enable a provider by name (configuration only; nothing is installed yet, all providers are disabled by default):
775
775
 
776
776
  ```bash
777
- req --enable pi:prompts,skills
777
+ req --enable pi
778
778
  ```
779
779
 
780
- **3. Run** — install the artifacts for the configured providers on your project:
780
+ **3. Run** — install the skills for the configured providers:
781
781
 
782
782
  ```bash
783
- req install --prj-base myproject/
783
+ req install
784
784
  ```
785
785
 
786
- Prompts and skills are installed under your HOME (e.g. `~/.pi/agent/prompts/` and `~/.pi/agent/skills/` for the `pi` provider) and are immediately available as `/req-<name>` commands and `/skill:req-<name>` skills. Start with `/req-write` to draft the SRS of a new project, or `/req-create` to derive it from existing source code; then drive implementation with `/req-implement`, `/req-change`, and `/req-new`.
786
+ Skills are installed under your HOME (e.g. `~/.pi/agent/skills/` for the `pi` provider) and are immediately available as `/skill:req-<name>` skills. Start with `/req-write` to draft the SRS of a new project, or `/req-create` to derive it from existing source code; then drive implementation with `/req-implement`, `/req-change`, and `/req-new`.
787
787
 
788
788
  <!-- Legacy section anchor retained for SRS-342 tooling: ## Requirements -->
789
789
  # Requirements
@@ -842,11 +842,11 @@ req --uninstall # executes `uv tool uninstall cli-usereq` on Linux and clean
842
842
 
843
843
  ### Provider artifacts
844
844
 
845
- - `req install --prj-base PRJ_BASE` — installs or updates the providers persisted in the configuration and prints a Unicode installation summary report (per-provider `Prompts Installed` / `Modules Installed` columns). Requires at least one enabled provider, otherwise an English error is printed and the exit code is 4.
846
- - `req uninstall` — reciprocal of `install`: removes the `req-*` artifacts of the configured providers from the user-level provider directories.
847
- - `req show` — prints the active configuration as tables: settings (including `auto-install`), provider enablement status, one dedicated per-provider table showing the installation status of the `prompts`, `agents`, and `skills` components detected on disk, and the enabled static-check entries.
845
+ - `req install` — installs or updates the skills of the providers persisted in the configuration into user-level directories and prints a Unicode installation summary report (`Provider` / `Skills Installed` columns). Requires at least one enabled provider, otherwise an English error is printed and the exit code is 4. Skills are the only supported artifact type: prompts and agents are no longer installed.
846
+ - `req uninstall` — reciprocal of `install`: removes the `req-*` skill artifacts of the configured providers from the user-level skills directories.
847
+ - `req show` — prints the active configuration as tables: settings (including `auto-install`), the `Provider` / `Skills Path` table listing enabled providers in alphabetical order with their hardcoded home-relative skills path, one dedicated per-provider table showing the installation status of the `skills` component detected on disk, and the enabled static-check entries.
848
848
 
849
- Artifacts are always installed into **user-level CLI configuration directories under your HOME** (`~/.claude`, `~/.codex`, `~/.gemini/config`, `~/.agents`, `~/.config/opencode`, `~/.pi/agent`); nothing is ever written into the project repository.
849
+ Skills are always installed into **user-level CLI configuration directories under your HOME** (`~/.claude/skills`, `~/.agents/skills`, `~/.gemini/config/skills`, `~/.openclaw/workspace/skills`, `~/.config/opencode/skills`, `~/.pi/agent/skills`); nothing is ever written into the project repository.
850
850
 
851
851
  ## Configuration
852
852
 
@@ -871,25 +871,32 @@ Typical project layout:
871
871
 
872
872
  ### Providers
873
873
 
874
- All providers are disabled by default. Provider enablement is exclusive to the repeatable config-only flag:
874
+ All providers are disabled by default. Provider enablement is exclusive to the repeatable config-only flag, which accepts only the provider CLI name exactly like `--disable PROVIDER`:
875
875
 
876
876
  ```bash
877
- req --enable SPEC
877
+ req --enable PROVIDER
878
878
  ```
879
879
 
880
- - `SPEC` format: `PROVIDER:ARTIFACT_ITEM[,ARTIFACT_ITEM...][:PROVIDER_OPTIONS]`
881
- - `PROVIDER`: `antigravity`, `claude`, `codex`, `opencode`, or `pi`.
882
- - `ARTIFACT_ITEM`: one of `{prompts, agents, skills}`.
883
- - `PROVIDER_OPTIONS`: (optional) comma-separated list from `{prompts-use-agents}`.
884
- - Example: `req --enable pi:prompts,skills`
880
+ - `PROVIDER`: `antigravity`, `claude`, `codex`, `openclaw`, `opencode`, or `pi`.
881
+ - Example: `req --enable pi`
885
882
 
886
883
  Behavior:
887
884
 
888
- - `--enable` only updates `~/.config/usereq/config.json`; it never installs artifacts. Enabling a provider again replaces all its previously persisted specs while preserving every other provider.
889
- - `--disable PROVIDER` removes all persisted specs of that provider (unknown tokens exit with code 1).
890
- - Unknown or invalid tokens in a SPEC print an English error identifying the invalid token and exit with code 1.
891
- - `prompts-use-agents` is provider-scoped and applies only to `prompts` artifacts: it generates prompt files as **agent-only references** (adds an `agent:` front matter field) where supported (Claude commands, OpenCode commands, and pi prompts).
892
- - Configuration flags may be combined with the `install` subcommand in one invocation (`req --enable pi:prompts install --prj-base .`): configuration is applied first, then installation proceeds.
885
+ - `--enable` only updates `~/.config/usereq/config.json`; it never installs artifacts. Enabling a provider again replaces all its previously persisted entries while preserving every other provider.
886
+ - `--disable PROVIDER` removes all persisted entries of that provider (unknown tokens exit with code 1).
887
+ - Unknown or invalid tokens print an English error identifying the invalid token and exit with code 1.
888
+ - Configuration flags may be combined with the `install` subcommand in one invocation (`req --enable pi install`): configuration is applied first, then installation proceeds.
889
+
890
+ Provider skills paths:
891
+
892
+ | Provider | Skills path |
893
+ | --- | --- |
894
+ | antigravity | `~/.gemini/config/skills` |
895
+ | claude | `~/.claude/skills` |
896
+ | codex | `~/.agents/skills` |
897
+ | openclaw | `~/.openclaw/workspace/skills` |
898
+ | opencode | `~/.config/opencode/skills` |
899
+ | pi | `~/.pi/agent/skills` |
893
900
 
894
901
  ### Static checks
895
902
 
@@ -922,7 +929,7 @@ A standalone testbed is available: `req --test-static-check {dummy,pylance,ruff,
922
929
 
923
930
  `req` can be run from any directory. Two path arguments drive location resolution:
924
931
 
925
- - `--prj-base <project-folder>` — mandatory for commands that read or write project files (`install`, `--docs-check`, `--set-*-dir`, and the project-scan subcommands `tokens`, `references`, `compress`, `find`, `static-check`, `files-static-check`).
932
+ - `--prj-base <project-folder>` — mandatory for commands that read or write project files (`--docs-check`, `--set-*-dir`, and the project-scan subcommands `tokens`, `references`, `compress`, `find`, `static-check`, `files-static-check`); the `install` subcommand neither requires nor accepts it.
926
933
  - `--git-base <git-repository-folder>` — mandatory for the git commands (`--git-check`, `--git-wt-name`, `--git-wt-create`, `--git-wt-delete`); not required by any analysis subcommand.
927
934
  - `--prj-base` and `--git-base` are never persisted in `~/.config/usereq/config.json`.
928
935
 
@@ -1012,15 +1019,16 @@ A startup release check queries the latest PyPI release (idle-gated to at most o
1012
1019
 
1013
1020
  # Documentation
1014
1021
 
1015
- ## Supported CLIs, Agents, and Extensions
1022
+ ## Supported CLIs and Extensions
1016
1023
 
1017
1024
  ### High-Level Assessment
1018
1025
 
1019
- - 🌟 **pi.dev CLI** 🌟 - Supports user-level prompt templates and Agent Skills from `~/.pi/agent/prompts/` and `~/.pi/agent/skills/`.
1020
- - 🌟 **Antigravity CLI** 🌟 - Evolution of Gemini CLI; supports user-level workflows, agents, and skills from `~/.gemini/config/`.
1021
- - 👍 **OpenCode** 👍 - Many models available; supports user-level commands, agents, and skills from `~/.config/opencode/`.
1022
- - ⚖️ **Claude Code** ⚖️ - Only supports Claude/Anthropic models; supports user-level commands, agents, and skills from `~/.claude/`.
1023
- - 🆗 **OpenAI Codex** 🆗 - Only supports OpenAI models; supports user-level prompts (deprecated), agents, and skills from `~/.codex/` and `~/.agents/`.
1026
+ - 🌟 **pi.dev CLI** 🌟 - Supports user-level Agent Skills from `~/.pi/agent/skills/`.
1027
+ - 🌟 **Antigravity CLI** 🌟 - Evolution of Gemini CLI; supports user-level skills from `~/.gemini/config/skills/`.
1028
+ - 👍 **OpenClaw** 👍 - Supports user-level skills from `~/.openclaw/workspace/skills/`.
1029
+ - 👍 **OpenCode** 👍 - Many models available; supports user-level skills from `~/.config/opencode/skills/`.
1030
+ - ⚖️ **Claude Code** ⚖️ - Only supports Claude/Anthropic models; supports user-level skills from `~/.claude/skills/`.
1031
+ - 🆘 **OpenAI Codex** 🆘 - Only supports OpenAI models; supports user-level skills from `~/.agents/skills/`.
1024
1032
 
1025
1033
  ### useReq/req Support
1026
1034
 
@@ -1028,45 +1036,23 @@ A startup release check queries the latest PyPI release (idle-gated to at most o
1028
1036
  - ✅ Antigravity CLI
1029
1037
  - ✅ Claude Code
1030
1038
  - ✅ OpenAI Codex
1039
+ - ✅ OpenClaw
1031
1040
  - ✅ OpenCode
1032
1041
 
1033
1042
  | ✅ supported | ❌ not supported |
1034
1043
 
1035
- GitHub Copilot and Kiro CLI are not supported: their prompt/agent/skill configuration is repository-scoped only and cannot be managed at user level.
1044
+ GitHub Copilot and Kiro CLI are not supported: their skill configuration is repository-scoped only and cannot be managed at user level. Prompts and agents are no longer supported artifacts: useReq installs skills only.
1036
1045
 
1037
1046
  ### Skills Details
1038
1047
 
1039
- - ✅ pi.dev CLI: [`/skill:req-create`]
1040
- - useReq generates `~/.pi/agent/skills/req-create/SKILL.md`.
1041
- - pi discovers user skills from `~/.pi/agent/skills/` and registers them as `/skill:name` commands.
1042
- - Arguments after the command are appended to the skill content as `User: <args>`.
1043
- - ✅ Antigravity CLI: [`$req-create`]
1044
- - ✅ OpenAI Codex: [`$req-create`]
1045
- - ✅ Claude Code: [`/req-create`]
1046
- - ✅ OpenCode: [`/req-create`]
1047
-
1048
- ### CLI Prompt Details
1049
-
1050
- - ✅ pi.dev CLI: [`/req-create`]
1051
- - useReq generates `~/.pi/agent/prompts/req-create.md`.
1052
- - pi prompt templates use the filename without `.md` as the command name.
1053
- - Prompt arguments are supported by pi prompt templates (`$1`, `$2`, `$@`, `$ARGUMENTS`).
1054
- - ✅ Antigravity CLI: [`/req-<name>` workflows under `~/.gemini/config/workflows/`]
1055
- - ✅ OpenAI Codex: [`/prompts:/req-create`] (deprecated)
1056
- - ✅ Claude Code: [`/req:create`]
1057
- - ✅ OpenCode: [`/req-create`]
1058
-
1059
- ### CLI Agents Details
1060
-
1061
- - ❌ pi.dev CLI
1062
- - useReq does not generate agents for provider `pi`; it emits prompts and skills only.
1063
- - ✅ Antigravity CLI
1064
- - useReq generates `~/.gemini/config/agents/req-<name>/agent.md`.
1065
- - ✅ OpenAI Codex
1066
- - useReq generates `~/.codex/agents/req-<name>.toml`.
1067
- - ✅ Claude Code: [`@agent-req-create`]
1068
- - ✔️ OpenCode: [`<TAB> ➡️ Req.Create ↩️`]
1069
- - **Starts a new session** (`/new`) for every prompt.
1048
+ Every enabled provider receives `req-<name>/SKILL.md` skill directories under its hardcoded skills root:
1049
+
1050
+ - ✅ pi.dev CLI: [`/skill:req-create`] — `~/.pi/agent/skills/req-create/SKILL.md`; pi discovers user skills from `~/.pi/agent/skills/` and registers them as `/skill:name` commands; arguments after the command are appended to the skill content as `User: <args>`.
1051
+ - ✅ Antigravity CLI: [`$req-create`] — `~/.gemini/config/skills/req-create/SKILL.md`.
1052
+ - ✅ OpenAI Codex: [`$req-create`] — `~/.agents/skills/req-create/SKILL.md`.
1053
+ - ✅ Claude Code: [`/req-create`] — `~/.claude/skills/req-create/SKILL.md`.
1054
+ - ✅ OpenClaw: [`$req-create`] — `~/.openclaw/workspace/skills/req-create/SKILL.md`.
1055
+ - ✅ OpenCode: [`/req-create`] — `~/.config/opencode/skills/req-create/SKILL.md`.
1070
1056
 
1071
1057
  ## Default Workflow
1072
1058
 
@@ -1090,7 +1076,7 @@ Requirements-driven projects keep their normative documentation under the config
1090
1076
  ## Development Notes
1091
1077
 
1092
1078
  - `scripts/req.sh` runs the CLI via `uv run python -m usereq.cli` from the repository root, forwarding all user arguments unchanged.
1093
- - `scripts/test-install.sh` performs an isolated-HOME smoke installation (`--enable pi:prompts,skills` + `install`).
1079
+ - `scripts/test-install.sh` performs an isolated-HOME smoke installation (`--enable pi` + `install`).
1094
1080
  - `scripts/prompts-update.sh` synchronizes the bundled prompts from the upstream [Ogekuri/CLI-Prompts](https://github.com/Ogekuri/CLI-Prompts) releases into `src/usereq/resources/prompts`.
1095
1081
  - `uv.lock` is the canonical dependency lockfile for execution, build, development, testing, and static analysis.
1096
1082
 
@@ -10,7 +10,7 @@
10
10
  > * **No Support or Feature Requests:** Please **do not** open issues, bug reports, or feature requests. They will not be addressed or accepted at this stage of development.
11
11
  > * **No Warranty:** This software is provided **"AS IS"**, without warranty of any kind, express or implied. You may use it strictly for **testing and evaluation purposes** at your own sole risk.
12
12
 
13
- # useReq / req (0.70.0)
13
+ # useReq / req (0.72.0)
14
14
 
15
15
  <p align="center">
16
16
  <img src="https://img.shields.io/badge/python-3.11%2B-3776AB?style=flat-square&logo=python&logoColor=white" alt="Python 3.11+">
@@ -21,8 +21,8 @@
21
21
  </p>
22
22
 
23
23
  <p align="center">
24
- <strong>The `req` CLI provisions requirements-driven development prompts for LLM agents.</strong><br>
25
- In more detail: useReq packages a catalog of requirements-engineering prompts (write, create, change, implement, check, and more) and installs them as user-level prompts, commands, skills, and agents for the CLIs and agents you already use — exposed as `/req-<name>`, `/req:<name>`, `/skill:req-<name>`, or `$req-<name>` depending on the provider. It also ships an embedded source-analysis toolkit (token counting, references, compression, construct extraction, static checks) that operates on your project across 20 programming languages, plus git-worktree helpers for parallel task execution. Everything is driven by one user-global configuration file (`~/.config/usereq/config.json`); nothing is written into your project repository. It runs as a Python package (installed as `req` or `usereq`) or directly via `uvx`.
24
+ <strong>The `req` CLI provisions requirements-driven development skills for LLM agents.</strong><br>
25
+ In more detail: useReq packages a catalog of requirements-engineering prompts (write, create, change, implement, check, and more) and installs them as user-level skills for the CLIs and agents you already use — exposed as `/skill:req-<name>` or `$req-<name>` depending on the provider. It also ships an embedded source-analysis toolkit (token counting, references, compression, construct extraction, static checks) that operates on your project across 20 programming languages, plus git-worktree helpers for parallel task execution. Everything is driven by one user-global configuration file (`~/.config/usereq/config.json`); nothing is written into your project repository. It runs as a Python package (installed as `req` or `usereq`) or directly via `uvx`.
26
26
  </p>
27
27
 
28
28
  <p align="center">
@@ -43,7 +43,7 @@ In more detail: useReq packages a catalog of requirements-engineering prompts (w
43
43
  The highlights below are what give the most value day-to-day:
44
44
 
45
45
  - **Drives development through requirement changes**, keeping the work under control with an uninterrupted linear progression.
46
- - **One catalog, many CLIs**: a single prompt/skill/agent catalog published to pi.dev, Antigravity, Claude Code, OpenAI Codex, and OpenCode through a common interface.
46
+ - **One catalog, many CLIs**: a single skill catalog published to pi.dev, Antigravity, Claude Code, OpenAI Codex, OpenClaw, and OpenCode through a common interface.
47
47
  - **LLM-optimized documentation**: creates and maintains a *Software Requirements Specification* (SRS) plus `WORKFLOW.md`, `REFERENCES.md`, and `FLOWCHART.md` for new or existing projects, tuned for LLM-agent reasoning.
48
48
  - **Embedded source analysis** for 20 languages (Python, C, C++, C#, Rust, JavaScript, TypeScript, Java, Go, Ruby, PHP, Swift, Kotlin, Scala, Lua, Shell, Perl, Haskell, Zig, Elixir): token counting, reference markdown, compression, and construct extraction.
49
49
  - **Configurable static analysis** with Pylance, Ruff, or arbitrary Command-Line checkers — sensible defaults included, with per-checker pre-flight validation that never blocks the run.
@@ -72,19 +72,19 @@ uvx --from cli-usereq req --help
72
72
  uvx --from git+https://github.com/Ogekuri/CLI-useReq.git req --help
73
73
  ```
74
74
 
75
- **2. Configure** — enable a provider (configuration only; nothing is installed yet, all providers are disabled by default):
75
+ **2. Configure** — enable a provider by name (configuration only; nothing is installed yet, all providers are disabled by default):
76
76
 
77
77
  ```bash
78
- req --enable pi:prompts,skills
78
+ req --enable pi
79
79
  ```
80
80
 
81
- **3. Run** — install the artifacts for the configured providers on your project:
81
+ **3. Run** — install the skills for the configured providers:
82
82
 
83
83
  ```bash
84
- req install --prj-base myproject/
84
+ req install
85
85
  ```
86
86
 
87
- Prompts and skills are installed under your HOME (e.g. `~/.pi/agent/prompts/` and `~/.pi/agent/skills/` for the `pi` provider) and are immediately available as `/req-<name>` commands and `/skill:req-<name>` skills. Start with `/req-write` to draft the SRS of a new project, or `/req-create` to derive it from existing source code; then drive implementation with `/req-implement`, `/req-change`, and `/req-new`.
87
+ Skills are installed under your HOME (e.g. `~/.pi/agent/skills/` for the `pi` provider) and are immediately available as `/skill:req-<name>` skills. Start with `/req-write` to draft the SRS of a new project, or `/req-create` to derive it from existing source code; then drive implementation with `/req-implement`, `/req-change`, and `/req-new`.
88
88
 
89
89
  <!-- Legacy section anchor retained for SRS-342 tooling: ## Requirements -->
90
90
  # Requirements
@@ -143,11 +143,11 @@ req --uninstall # executes `uv tool uninstall cli-usereq` on Linux and clean
143
143
 
144
144
  ### Provider artifacts
145
145
 
146
- - `req install --prj-base PRJ_BASE` — installs or updates the providers persisted in the configuration and prints a Unicode installation summary report (per-provider `Prompts Installed` / `Modules Installed` columns). Requires at least one enabled provider, otherwise an English error is printed and the exit code is 4.
147
- - `req uninstall` — reciprocal of `install`: removes the `req-*` artifacts of the configured providers from the user-level provider directories.
148
- - `req show` — prints the active configuration as tables: settings (including `auto-install`), provider enablement status, one dedicated per-provider table showing the installation status of the `prompts`, `agents`, and `skills` components detected on disk, and the enabled static-check entries.
146
+ - `req install` — installs or updates the skills of the providers persisted in the configuration into user-level directories and prints a Unicode installation summary report (`Provider` / `Skills Installed` columns). Requires at least one enabled provider, otherwise an English error is printed and the exit code is 4. Skills are the only supported artifact type: prompts and agents are no longer installed.
147
+ - `req uninstall` — reciprocal of `install`: removes the `req-*` skill artifacts of the configured providers from the user-level skills directories.
148
+ - `req show` — prints the active configuration as tables: settings (including `auto-install`), the `Provider` / `Skills Path` table listing enabled providers in alphabetical order with their hardcoded home-relative skills path, one dedicated per-provider table showing the installation status of the `skills` component detected on disk, and the enabled static-check entries.
149
149
 
150
- Artifacts are always installed into **user-level CLI configuration directories under your HOME** (`~/.claude`, `~/.codex`, `~/.gemini/config`, `~/.agents`, `~/.config/opencode`, `~/.pi/agent`); nothing is ever written into the project repository.
150
+ Skills are always installed into **user-level CLI configuration directories under your HOME** (`~/.claude/skills`, `~/.agents/skills`, `~/.gemini/config/skills`, `~/.openclaw/workspace/skills`, `~/.config/opencode/skills`, `~/.pi/agent/skills`); nothing is ever written into the project repository.
151
151
 
152
152
  ## Configuration
153
153
 
@@ -172,25 +172,32 @@ Typical project layout:
172
172
 
173
173
  ### Providers
174
174
 
175
- All providers are disabled by default. Provider enablement is exclusive to the repeatable config-only flag:
175
+ All providers are disabled by default. Provider enablement is exclusive to the repeatable config-only flag, which accepts only the provider CLI name exactly like `--disable PROVIDER`:
176
176
 
177
177
  ```bash
178
- req --enable SPEC
178
+ req --enable PROVIDER
179
179
  ```
180
180
 
181
- - `SPEC` format: `PROVIDER:ARTIFACT_ITEM[,ARTIFACT_ITEM...][:PROVIDER_OPTIONS]`
182
- - `PROVIDER`: `antigravity`, `claude`, `codex`, `opencode`, or `pi`.
183
- - `ARTIFACT_ITEM`: one of `{prompts, agents, skills}`.
184
- - `PROVIDER_OPTIONS`: (optional) comma-separated list from `{prompts-use-agents}`.
185
- - Example: `req --enable pi:prompts,skills`
181
+ - `PROVIDER`: `antigravity`, `claude`, `codex`, `openclaw`, `opencode`, or `pi`.
182
+ - Example: `req --enable pi`
186
183
 
187
184
  Behavior:
188
185
 
189
- - `--enable` only updates `~/.config/usereq/config.json`; it never installs artifacts. Enabling a provider again replaces all its previously persisted specs while preserving every other provider.
190
- - `--disable PROVIDER` removes all persisted specs of that provider (unknown tokens exit with code 1).
191
- - Unknown or invalid tokens in a SPEC print an English error identifying the invalid token and exit with code 1.
192
- - `prompts-use-agents` is provider-scoped and applies only to `prompts` artifacts: it generates prompt files as **agent-only references** (adds an `agent:` front matter field) where supported (Claude commands, OpenCode commands, and pi prompts).
193
- - Configuration flags may be combined with the `install` subcommand in one invocation (`req --enable pi:prompts install --prj-base .`): configuration is applied first, then installation proceeds.
186
+ - `--enable` only updates `~/.config/usereq/config.json`; it never installs artifacts. Enabling a provider again replaces all its previously persisted entries while preserving every other provider.
187
+ - `--disable PROVIDER` removes all persisted entries of that provider (unknown tokens exit with code 1).
188
+ - Unknown or invalid tokens print an English error identifying the invalid token and exit with code 1.
189
+ - Configuration flags may be combined with the `install` subcommand in one invocation (`req --enable pi install`): configuration is applied first, then installation proceeds.
190
+
191
+ Provider skills paths:
192
+
193
+ | Provider | Skills path |
194
+ | --- | --- |
195
+ | antigravity | `~/.gemini/config/skills` |
196
+ | claude | `~/.claude/skills` |
197
+ | codex | `~/.agents/skills` |
198
+ | openclaw | `~/.openclaw/workspace/skills` |
199
+ | opencode | `~/.config/opencode/skills` |
200
+ | pi | `~/.pi/agent/skills` |
194
201
 
195
202
  ### Static checks
196
203
 
@@ -223,7 +230,7 @@ A standalone testbed is available: `req --test-static-check {dummy,pylance,ruff,
223
230
 
224
231
  `req` can be run from any directory. Two path arguments drive location resolution:
225
232
 
226
- - `--prj-base <project-folder>` — mandatory for commands that read or write project files (`install`, `--docs-check`, `--set-*-dir`, and the project-scan subcommands `tokens`, `references`, `compress`, `find`, `static-check`, `files-static-check`).
233
+ - `--prj-base <project-folder>` — mandatory for commands that read or write project files (`--docs-check`, `--set-*-dir`, and the project-scan subcommands `tokens`, `references`, `compress`, `find`, `static-check`, `files-static-check`); the `install` subcommand neither requires nor accepts it.
227
234
  - `--git-base <git-repository-folder>` — mandatory for the git commands (`--git-check`, `--git-wt-name`, `--git-wt-create`, `--git-wt-delete`); not required by any analysis subcommand.
228
235
  - `--prj-base` and `--git-base` are never persisted in `~/.config/usereq/config.json`.
229
236
 
@@ -313,15 +320,16 @@ A startup release check queries the latest PyPI release (idle-gated to at most o
313
320
 
314
321
  # Documentation
315
322
 
316
- ## Supported CLIs, Agents, and Extensions
323
+ ## Supported CLIs and Extensions
317
324
 
318
325
  ### High-Level Assessment
319
326
 
320
- - 🌟 **pi.dev CLI** 🌟 - Supports user-level prompt templates and Agent Skills from `~/.pi/agent/prompts/` and `~/.pi/agent/skills/`.
321
- - 🌟 **Antigravity CLI** 🌟 - Evolution of Gemini CLI; supports user-level workflows, agents, and skills from `~/.gemini/config/`.
322
- - 👍 **OpenCode** 👍 - Many models available; supports user-level commands, agents, and skills from `~/.config/opencode/`.
323
- - ⚖️ **Claude Code** ⚖️ - Only supports Claude/Anthropic models; supports user-level commands, agents, and skills from `~/.claude/`.
324
- - 🆗 **OpenAI Codex** 🆗 - Only supports OpenAI models; supports user-level prompts (deprecated), agents, and skills from `~/.codex/` and `~/.agents/`.
327
+ - 🌟 **pi.dev CLI** 🌟 - Supports user-level Agent Skills from `~/.pi/agent/skills/`.
328
+ - 🌟 **Antigravity CLI** 🌟 - Evolution of Gemini CLI; supports user-level skills from `~/.gemini/config/skills/`.
329
+ - 👍 **OpenClaw** 👍 - Supports user-level skills from `~/.openclaw/workspace/skills/`.
330
+ - 👍 **OpenCode** 👍 - Many models available; supports user-level skills from `~/.config/opencode/skills/`.
331
+ - ⚖️ **Claude Code** ⚖️ - Only supports Claude/Anthropic models; supports user-level skills from `~/.claude/skills/`.
332
+ - 🆘 **OpenAI Codex** 🆘 - Only supports OpenAI models; supports user-level skills from `~/.agents/skills/`.
325
333
 
326
334
  ### useReq/req Support
327
335
 
@@ -329,45 +337,23 @@ A startup release check queries the latest PyPI release (idle-gated to at most o
329
337
  - ✅ Antigravity CLI
330
338
  - ✅ Claude Code
331
339
  - ✅ OpenAI Codex
340
+ - ✅ OpenClaw
332
341
  - ✅ OpenCode
333
342
 
334
343
  | ✅ supported | ❌ not supported |
335
344
 
336
- GitHub Copilot and Kiro CLI are not supported: their prompt/agent/skill configuration is repository-scoped only and cannot be managed at user level.
345
+ GitHub Copilot and Kiro CLI are not supported: their skill configuration is repository-scoped only and cannot be managed at user level. Prompts and agents are no longer supported artifacts: useReq installs skills only.
337
346
 
338
347
  ### Skills Details
339
348
 
340
- - ✅ pi.dev CLI: [`/skill:req-create`]
341
- - useReq generates `~/.pi/agent/skills/req-create/SKILL.md`.
342
- - pi discovers user skills from `~/.pi/agent/skills/` and registers them as `/skill:name` commands.
343
- - Arguments after the command are appended to the skill content as `User: <args>`.
344
- - ✅ Antigravity CLI: [`$req-create`]
345
- - ✅ OpenAI Codex: [`$req-create`]
346
- - ✅ Claude Code: [`/req-create`]
347
- - ✅ OpenCode: [`/req-create`]
348
-
349
- ### CLI Prompt Details
350
-
351
- - ✅ pi.dev CLI: [`/req-create`]
352
- - useReq generates `~/.pi/agent/prompts/req-create.md`.
353
- - pi prompt templates use the filename without `.md` as the command name.
354
- - Prompt arguments are supported by pi prompt templates (`$1`, `$2`, `$@`, `$ARGUMENTS`).
355
- - ✅ Antigravity CLI: [`/req-<name>` workflows under `~/.gemini/config/workflows/`]
356
- - ✅ OpenAI Codex: [`/prompts:/req-create`] (deprecated)
357
- - ✅ Claude Code: [`/req:create`]
358
- - ✅ OpenCode: [`/req-create`]
359
-
360
- ### CLI Agents Details
361
-
362
- - ❌ pi.dev CLI
363
- - useReq does not generate agents for provider `pi`; it emits prompts and skills only.
364
- - ✅ Antigravity CLI
365
- - useReq generates `~/.gemini/config/agents/req-<name>/agent.md`.
366
- - ✅ OpenAI Codex
367
- - useReq generates `~/.codex/agents/req-<name>.toml`.
368
- - ✅ Claude Code: [`@agent-req-create`]
369
- - ✔️ OpenCode: [`<TAB> ➡️ Req.Create ↩️`]
370
- - **Starts a new session** (`/new`) for every prompt.
349
+ Every enabled provider receives `req-<name>/SKILL.md` skill directories under its hardcoded skills root:
350
+
351
+ - ✅ pi.dev CLI: [`/skill:req-create`] — `~/.pi/agent/skills/req-create/SKILL.md`; pi discovers user skills from `~/.pi/agent/skills/` and registers them as `/skill:name` commands; arguments after the command are appended to the skill content as `User: <args>`.
352
+ - ✅ Antigravity CLI: [`$req-create`] — `~/.gemini/config/skills/req-create/SKILL.md`.
353
+ - ✅ OpenAI Codex: [`$req-create`] — `~/.agents/skills/req-create/SKILL.md`.
354
+ - ✅ Claude Code: [`/req-create`] — `~/.claude/skills/req-create/SKILL.md`.
355
+ - ✅ OpenClaw: [`$req-create`] — `~/.openclaw/workspace/skills/req-create/SKILL.md`.
356
+ - ✅ OpenCode: [`/req-create`] — `~/.config/opencode/skills/req-create/SKILL.md`.
371
357
 
372
358
  ## Default Workflow
373
359
 
@@ -391,7 +377,7 @@ Requirements-driven projects keep their normative documentation under the config
391
377
  ## Development Notes
392
378
 
393
379
  - `scripts/req.sh` runs the CLI via `uv run python -m usereq.cli` from the repository root, forwarding all user arguments unchanged.
394
- - `scripts/test-install.sh` performs an isolated-HOME smoke installation (`--enable pi:prompts,skills` + `install`).
380
+ - `scripts/test-install.sh` performs an isolated-HOME smoke installation (`--enable pi` + `install`).
395
381
  - `scripts/prompts-update.sh` synchronizes the bundled prompts from the upstream [Ogekuri/CLI-Prompts](https://github.com/Ogekuri/CLI-Prompts) releases into `src/usereq/resources/prompts`.
396
382
  - `uv.lock` is the canonical dependency lockfile for execution, build, development, testing, and static analysis.
397
383
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "cli-usereq"
7
- version = "0.70.0"
7
+ version = "0.72.0"
8
8
  description = "Initialize a project with prompts, agents, and templates from the useReq repository."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.11"
@@ -45,7 +45,7 @@ include-package-data = true
45
45
  [tool.setuptools.package-data]
46
46
  usereq = [
47
47
  "resources/prompts/*.md",
48
- "resources/docs/*.md",
48
+ "resources/templates/*.md",
49
49
  "resources/prompts-version.txt",
50
50
  ]
51
51