cli-usereq 0.69.0__tar.gz → 0.71.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.
- {cli_usereq-0.69.0/src/cli_usereq.egg-info → cli_usereq-0.71.0}/PKG-INFO +52 -64
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/README.md +51 -63
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/pyproject.toml +4 -1
- {cli_usereq-0.69.0 → cli_usereq-0.71.0/src/cli_usereq.egg-info}/PKG-INFO +52 -64
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/src/cli_usereq.egg-info/SOURCES.txt +2 -0
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/src/usereq/__init__.py +1 -1
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/src/usereq/cli.py +350 -855
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/src/usereq/resources/prompts/analyze.md +10 -10
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/src/usereq/resources/prompts/change.md +19 -17
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/src/usereq/resources/prompts/check.md +12 -12
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/src/usereq/resources/prompts/cover.md +18 -16
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/src/usereq/resources/prompts/create.md +1 -1
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/src/usereq/resources/prompts/fix.md +18 -16
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/src/usereq/resources/prompts/flowchart.md +12 -12
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/src/usereq/resources/prompts/implement.md +10 -8
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/src/usereq/resources/prompts/new.md +19 -17
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/src/usereq/resources/prompts/readme.md +12 -12
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/src/usereq/resources/prompts/recreate.md +12 -12
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/src/usereq/resources/prompts/refactor.md +19 -17
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/src/usereq/resources/prompts/references.md +5 -5
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/src/usereq/resources/prompts/renumber.md +3 -3
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/src/usereq/resources/prompts/workflow.md +12 -12
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/src/usereq/resources/prompts/write.md +1 -1
- cli_usereq-0.71.0/src/usereq/resources/prompts-version.txt +1 -0
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/tests/test_cli.py +449 -354
- cli_usereq-0.71.0/tests/test_import_isolation.py +61 -0
- cli_usereq-0.71.0/tests/test_pre_release_check.py +245 -0
- cli_usereq-0.69.0/src/usereq/resources/prompts-version.txt +0 -1
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/LICENSE +0 -0
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/setup.cfg +0 -0
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/src/cli_usereq.egg-info/dependency_links.txt +0 -0
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/src/cli_usereq.egg-info/entry_points.txt +0 -0
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/src/cli_usereq.egg-info/requires.txt +0 -0
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/src/cli_usereq.egg-info/top_level.txt +0 -0
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/src/usereq/__main__.py +0 -0
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/src/usereq/compress.py +0 -0
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/src/usereq/compress_files.py +0 -0
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/src/usereq/doxygen_parser.py +0 -0
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/src/usereq/find_constructs.py +0 -0
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/src/usereq/generate_markdown.py +0 -0
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/src/usereq/resources/docs/Document_Source_Code_in_Doxygen_Style.md +0 -0
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/src/usereq/resources/docs/HDT_Test_Authoring_Guide.md +0 -0
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/src/usereq/resources/docs/Requirements_Template.md +0 -0
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/src/usereq/source_analyzer.py +0 -0
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/src/usereq/static_check.py +0 -0
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/src/usereq/token_counter.py +0 -0
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/tests/test_analyzer_cli.py +0 -0
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/tests/test_analyzer_comments.py +0 -0
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/tests/test_analyzer_core.py +0 -0
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/tests/test_analyzer_errors.py +0 -0
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/tests/test_analyzer_format.py +0 -0
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/tests/test_analyzer_helpers.py +0 -0
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/tests/test_compress.py +0 -0
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/tests/test_dependency_manifests.py +0 -0
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/tests/test_doxygen_parser.py +0 -0
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/tests/test_files_commands.py +0 -0
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/tests/test_find_constructs.py +0 -0
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/tests/test_find_constructs_comprehensive.py +0 -0
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/tests/test_generate_markdown.py +0 -0
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/tests/test_helpers.py +0 -0
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/tests/test_release_workflow.py +0 -0
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/tests/test_source_analyzer.py +0 -0
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/tests/test_static_check.py +0 -0
- {cli_usereq-0.69.0 → cli_usereq-0.71.0}/tests/test_token_counter.py +0 -0
- {cli_usereq-0.69.0 → cli_usereq-0.71.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.
|
|
3
|
+
Version: 0.71.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.
|
|
712
|
+
# useReq / req (0.71.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
|
|
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
|
|
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
|
|
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
|
|
777
|
+
req --enable pi
|
|
778
778
|
```
|
|
779
779
|
|
|
780
|
-
**3. Run** — install the
|
|
780
|
+
**3. Run** — install the skills for the configured providers:
|
|
781
781
|
|
|
782
782
|
```bash
|
|
783
|
-
req install
|
|
783
|
+
req install
|
|
784
784
|
```
|
|
785
785
|
|
|
786
|
-
|
|
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
|
|
846
|
-
- `req uninstall` — reciprocal of `install`: removes the `req-*` artifacts of the configured providers from the user-level
|
|
847
|
-
- `req show` — prints the active configuration as tables: settings (including `auto-install`),
|
|
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
|
-
|
|
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
|
|
877
|
+
req --enable PROVIDER
|
|
878
878
|
```
|
|
879
879
|
|
|
880
|
-
- `
|
|
881
|
-
-
|
|
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
|
|
889
|
-
- `--disable PROVIDER` removes all persisted
|
|
890
|
-
- Unknown or invalid tokens
|
|
891
|
-
-
|
|
892
|
-
|
|
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 (
|
|
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
|
|
1022
|
+
## Supported CLIs and Extensions
|
|
1016
1023
|
|
|
1017
1024
|
### High-Level Assessment
|
|
1018
1025
|
|
|
1019
|
-
- 🌟 **pi.dev CLI** 🌟 - Supports user-level
|
|
1020
|
-
- 🌟 **Antigravity CLI** 🌟 - Evolution of Gemini CLI; supports user-level
|
|
1021
|
-
- 👍 **
|
|
1022
|
-
-
|
|
1023
|
-
-
|
|
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,43 +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
|
|
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
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
- ✅
|
|
1044
|
-
- ✅
|
|
1045
|
-
- ✅
|
|
1046
|
-
- ✅ OpenCode: [`/req-create`]
|
|
1047
|
-
|
|
1048
|
-
### CLI Prompt Details
|
|
1049
|
-
|
|
1050
|
-
- ✅ pi.dev CLI: [`/req-create.prompt`]
|
|
1051
|
-
- useReq generates `~/.pi/agent/prompts/req-create.prompt.md`.
|
|
1052
|
-
- pi prompt templates use the filename without `.md` as the command name, so the generated `.prompt` suffix remains part of the slash command.
|
|
1053
|
-
- Prompt arguments are supported by pi prompt templates (`$1`, `$2`, `$@`, `$ARGUMENTS`).
|
|
1054
|
-
- ✅ Antigravity CLI: [`/req:create`]
|
|
1055
|
-
- ✅ OpenAI Codex: [`/prompts:/req-create`]
|
|
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
|
-
- ❌ OpenAI Codex
|
|
1065
|
-
- ✅ Claude Code: [`@agent-req-create`]
|
|
1066
|
-
- ✔️ OpenCode: [`<TAB> ➡️ Req.Create ↩️`]
|
|
1067
|
-
- **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`.
|
|
1068
1056
|
|
|
1069
1057
|
## Default Workflow
|
|
1070
1058
|
|
|
@@ -1088,7 +1076,7 @@ Requirements-driven projects keep their normative documentation under the config
|
|
|
1088
1076
|
## Development Notes
|
|
1089
1077
|
|
|
1090
1078
|
- `scripts/req.sh` runs the CLI via `uv run python -m usereq.cli` from the repository root, forwarding all user arguments unchanged.
|
|
1091
|
-
- `scripts/test-install.sh` performs an isolated-HOME smoke installation (`--enable pi
|
|
1079
|
+
- `scripts/test-install.sh` performs an isolated-HOME smoke installation (`--enable pi` + `install`).
|
|
1092
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`.
|
|
1093
1081
|
- `uv.lock` is the canonical dependency lockfile for execution, build, development, testing, and static analysis.
|
|
1094
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.
|
|
13
|
+
# useReq / req (0.71.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
|
|
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
|
|
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
|
|
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
|
|
78
|
+
req --enable pi
|
|
79
79
|
```
|
|
80
80
|
|
|
81
|
-
**3. Run** — install the
|
|
81
|
+
**3. Run** — install the skills for the configured providers:
|
|
82
82
|
|
|
83
83
|
```bash
|
|
84
|
-
req install
|
|
84
|
+
req install
|
|
85
85
|
```
|
|
86
86
|
|
|
87
|
-
|
|
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
|
|
147
|
-
- `req uninstall` — reciprocal of `install`: removes the `req-*` artifacts of the configured providers from the user-level
|
|
148
|
-
- `req show` — prints the active configuration as tables: settings (including `auto-install`),
|
|
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
|
-
|
|
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
|
|
178
|
+
req --enable PROVIDER
|
|
179
179
|
```
|
|
180
180
|
|
|
181
|
-
- `
|
|
182
|
-
-
|
|
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
|
|
190
|
-
- `--disable PROVIDER` removes all persisted
|
|
191
|
-
- Unknown or invalid tokens
|
|
192
|
-
-
|
|
193
|
-
|
|
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 (
|
|
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
|
|
323
|
+
## Supported CLIs and Extensions
|
|
317
324
|
|
|
318
325
|
### High-Level Assessment
|
|
319
326
|
|
|
320
|
-
- 🌟 **pi.dev CLI** 🌟 - Supports user-level
|
|
321
|
-
- 🌟 **Antigravity CLI** 🌟 - Evolution of Gemini CLI; supports user-level
|
|
322
|
-
- 👍 **
|
|
323
|
-
-
|
|
324
|
-
-
|
|
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,43 +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
|
|
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
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
- ✅
|
|
345
|
-
- ✅
|
|
346
|
-
- ✅
|
|
347
|
-
- ✅ OpenCode: [`/req-create`]
|
|
348
|
-
|
|
349
|
-
### CLI Prompt Details
|
|
350
|
-
|
|
351
|
-
- ✅ pi.dev CLI: [`/req-create.prompt`]
|
|
352
|
-
- useReq generates `~/.pi/agent/prompts/req-create.prompt.md`.
|
|
353
|
-
- pi prompt templates use the filename without `.md` as the command name, so the generated `.prompt` suffix remains part of the slash command.
|
|
354
|
-
- Prompt arguments are supported by pi prompt templates (`$1`, `$2`, `$@`, `$ARGUMENTS`).
|
|
355
|
-
- ✅ Antigravity CLI: [`/req:create`]
|
|
356
|
-
- ✅ OpenAI Codex: [`/prompts:/req-create`]
|
|
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
|
-
- ❌ OpenAI Codex
|
|
366
|
-
- ✅ Claude Code: [`@agent-req-create`]
|
|
367
|
-
- ✔️ OpenCode: [`<TAB> ➡️ Req.Create ↩️`]
|
|
368
|
-
- **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`.
|
|
369
357
|
|
|
370
358
|
## Default Workflow
|
|
371
359
|
|
|
@@ -389,7 +377,7 @@ Requirements-driven projects keep their normative documentation under the config
|
|
|
389
377
|
## Development Notes
|
|
390
378
|
|
|
391
379
|
- `scripts/req.sh` runs the CLI via `uv run python -m usereq.cli` from the repository root, forwarding all user arguments unchanged.
|
|
392
|
-
- `scripts/test-install.sh` performs an isolated-HOME smoke installation (`--enable pi
|
|
380
|
+
- `scripts/test-install.sh` performs an isolated-HOME smoke installation (`--enable pi` + `install`).
|
|
393
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`.
|
|
394
382
|
- `uv.lock` is the canonical dependency lockfile for execution, build, development, testing, and static analysis.
|
|
395
383
|
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "cli-usereq"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "0.71.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"
|
|
@@ -51,3 +51,6 @@ usereq = [
|
|
|
51
51
|
|
|
52
52
|
[tool.pytest.ini_options]
|
|
53
53
|
testpaths = ["tests"]
|
|
54
|
+
# Import the repository package before any PYTHONPATH or user-site shadow so
|
|
55
|
+
# the suite always tests the checked-out source (pre-release unit-tests stage).
|
|
56
|
+
pythonpath = ["src"]
|