feat: add --tech / -t CLI flag to force specific technologies#145
Open
Mbg999 wants to merge 1 commit into
Open
feat: add --tech / -t CLI flag to force specific technologies#145Mbg999 wants to merge 1 commit into
Mbg999 wants to merge 1 commit into
Conversation
Add --tech / -t CLI flag to bypass auto-detection and manually specify the technologies to install skills for. Supports multiple flags (--tech react --tech nextjs) and comma-separated values (--tech react,nextjs). Unknown technology IDs emit a warning and are skipped. When --tech is provided, the CLI builds the detected technology list directly from SKILLS_MAP instead of running the full project scan, while still evaluating combos and frontend inference from the forced IDs. Includes tests for the new flag and updates both README files with usage documentation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add
--tech/-tCLI flag to bypass auto-detection and manually specify the technologies to install skills for. Supports multiple flags (--tech react --tech nextjs) and comma-separated values (--tech react,nextjs). Unknown technology IDs emit a warning and are skipped.When
--techis provided, the CLI builds the detected technology list directly fromSKILLS_MAPinstead of running the full project scan, while still evaluating combos and frontend inference from the forced IDs.Includes tests for the new flag and updates both README files with usage documentation.
What Changed
packages/autoskills/main.tstechnologies: string[]toCliArgsinterface.parseArgs()to parse-t/--techsupporting multiple invocations and comma-separated values.showHelp()to document the new flag.main()to skipdetectTechnologies()when--techis present and build thedetectedarray directly fromSKILLS_MAP+FRONTEND_PACKAGES.packages/autoskills/tests/cli.test.ts--tech, multiple flags, comma-separated syntax, unknown-tech warning, and combination with-y.README.mdandpackages/autoskills/README.md-t, --techto the options table.Why This Change
There are greenfield projects where there are no elements yet that can be detected by heuristics, but which are intended to be added later, in addition to giving the possibility to skip it and install only what you want quickly. It also allows an agent to detect and pass on which technologies it wants to the installer.
Testing Done
Ran the full
pnpm testsuite on Node.js 22.22.3 — all 364 tests pass.Verified that
npx autoskills --dry-run --tech reactoutputs only React skills.Verified that
npx autoskills --dry-run --tech react,nextjsdetects both technologies and their combos.Verified that
npx autoskills --dry-run --tech unknownprints a warning and exits cleanly.Manual testing completed
Automated tests pass locally
Edge cases considered and tested
Type of Change
fix:Bug fixfeat:New featurerefactor:Code refactoringdocs:Documentationtest:Testschore:Maintenance/toolingSecurity & Quality Checklist
Documentation