forked from github/spec-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
Update repository-governance extension to v3.0.0 #31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
56 changes: 56 additions & 0 deletions
56
...nsions/repository-governance/commands/speckit.repository-governance.generate.md
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| --- | ||
| description: "Generate the active project-governance projection" | ||
| --- | ||
|
|
||
| # Project Governance Projection Generation | ||
|
|
||
| ## Input | ||
|
|
||
| $ARGUMENTS | ||
|
|
||
| ## Output | ||
|
|
||
| - Active agent platform target. | ||
| - Generated `PROJECT GOVERNANCE` projection file. | ||
|
|
||
| ## Procedure | ||
|
|
||
| 1. Require `.specify/`. | ||
| 2. Resolve the active agent platform target: | ||
| - `.specify/init-options.json` `context_file` when it is a safe relative agent/rules/instructions context path | ||
| - `.specify/integration.json` `default_integration` or `integration` | ||
| - default context target from `CONTEXT_FILES` | ||
| 3. Generate or overwrite the active agent platform target. | ||
| 4. Distill detected repository areas into action rules. | ||
| - depth: 2 | ||
| - include hidden and cache directories | ||
| 5. Capture repository facts from the current repository state as vertical SSOT evidence. | ||
| - Architecture evidence | ||
| - Engineering evidence | ||
| - Code Style evidence | ||
| - Directory Structure evidence | ||
| - Agent Harness evidence | ||
| - README, project docs, repository policy, and Spec Kit metadata | ||
| - extension assets, command/template governance contracts, manifests, lockfiles, task runners, build config, and runtime config | ||
| - feature specs, API contracts, source paths, and test paths | ||
| - development commands from package scripts or Python/uv test conventions | ||
| 6. Resolve the Spec Kit Agent Adapter for the active integration. | ||
| - active agent platform target | ||
| - repository-local skill discovery behavior | ||
| - MCP runtime discovery behavior | ||
| - repository MCP config candidates as evidence only | ||
| 7. Project the scenario capability index. | ||
| - repository-local skill capabilities from `SKILL.md` name, description, trigger, and source path | ||
| - MCP-backed external tool capability with runtime enumeration before use | ||
| 8. Run: | ||
|
|
||
| ```bash | ||
| uv run python .specify/extensions/repository-governance/scripts/generate_repository_governance.py | ||
| ``` | ||
|
|
||
| ## Report | ||
|
|
||
| - active agent platform target | ||
| - generated or updated | ||
| - review target | ||
| - captured evidence from the current repository state |
64 changes: 0 additions & 64 deletions
64
extensions/repository-governance/commands/speckit.repository-governance.refresh.md
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renaming the provided command here changes skill-based registrations from
speckit-repository-governance-refreshtospeckit-repository-governance-generate, but the community smoke workflow still asserts the old skill path at.github/workflows/community-smoke.yml:122and again after reinstall at lines 200-201. In the Claude/default community smoke path this manifest will create the new directory, so thosetest -f .claude/skills/speckit-repository-governance-refresh/SKILL.mdchecks fail unless the workflow/tests are updated or a compatibility alias is kept.Useful? React with 👍 / 👎.