selftest
Drives a self-test of an extension's lifecycle from the catalog, simulating the developer experience.
- Kind
- Prompt
- Works with
- Claude Code, Codex, GitHub Copilot, Cursor, Windsurf / Devin, Cline
- Source
- github/spec-kit @ c00dc0551583
- Path
- extensions/selftest/commands/selftest.md
- Jobs
- Testing
- Topics
- Unit tests & TDD
Credit
- Made by
- github
- Original
- github.com/github/spec-kit/blob/c00dc0551583428a10a94443c58c6…
- License
- MIT
Listed by Skill Manifest; not made by us.
InstallCopy it from the source repository, or sign in and let the assistant adapt it for your project.
Install factsScanned 3 Nov 2026
- Adds
- .claude/commands/selftest.md (run as /selftest)
- Runs scripts
- Yes
- shell block in the text
- Uses the network
- None found
- Needs secrets
- None found
- Source revision
- c00dc0551583
- Licence
- MIT
- Last activity
- 26 Nov 2026
- Source changed after the scan
- Yes
- Last push 26 Nov 2026, scanned 3 Nov 2026; read it again before you rely on this scan
- Review
- Reviewed
Found by a static scan of the stored text; nothing is run. “None found” is not a guarantee, so read what you install before you run it.
# Extension Self-Test: `$ARGUMENTS` This command drives a self-test simulating the developer experience with the `$ARGUMENTS` extension. ## Goal Validate the end-to-end lifecycle (discovery, installation, registration) for the extension: `$ARGUMENTS`. If `$ARGUMENTS` is empty, you must tell the user to provide an extension name, for example: `/speckit.selftest.extension linear`. ## Steps ### Step 1: Catalog Discovery Validation Check if the extension exists in the Spec Kit catalog. Execute this command and verify that it completes successfully and that the returned extension ID exactly matches `$ARGUMENTS`. If the command fails or the ID does not match `$ARGUMENTS`, fail the test. ```bash specify extension info "$ARGUMENTS" ``` ### Step 2: Simulate Installation First, try to add the extension to the current workspace configuration directly. If the catalog provides the extension as `install_allowed: false` (discovery-only), this step is *expected* to fail. ```bash specify extension add "$ARGUMENTS" ``` Then, simulate adding the extension by installing it from its catalog download URL, which should bypass the restriction. …