Repository navigation
Closed as not planned
Closed as not planned
Copy link
Labels
Description
Skill Overview
Eight or more workflows that perform git history and code change analysis independently define nearly-identical bash tool allowlists containing git log, git diff, git show, and common filesystem navigation commands (find, grep, cat, wc, etc.). Extracting these into a shared component would eliminate ~10-15 lines of repetition per workflow and ensure consistent permissions across all code-analysis agents.
Current Usage
This pattern appears in the following workflows:
-
architecture-guardian.md(lines ~21-33): fullgit log:*,git diff:*,git show:*,find:*,wc:*,grep:*,cat:*,head:*,awk:*,sed:*,sort:* -
breaking-change-checker.md(lines ~21-27):git diff:*,git log:*,git show:*,cat:*,grep:* -
test-quality-sentinel.md(lines ~23-33):git diff:*,git show:*,git log:*,grep:*,find:*,cat:*,wc:*,awk:*,sed:* -
design-decision-gate.md(lines ~17-26):git diff:*,git log:*,git show:*,cat:*,grep:*,ls:*,wc:*,find:* -
daily-compiler-quality.md(lines ~18-23): specific git commands with wildcards -
copilot-cli-deep-research.md: git commands with wildcards -
daily-mcp-concurrency-analysis.md: git commands with wildcards -
mergefest.md: git analysis commands
Proposed Shared Component
File: .github/workflows/shared/git-bash-tools.md
Configuration:
---
# Git and filesystem navigation tools for code analysis workflows.
# Provides bash allowlist for git history access and standard file navigation.
tools:
bash:
- "git log:*"
- "git diff:*"
- "git show:*"
- "find:*"
- "grep:*"
- "cat:*"
- "wc:*"
- "head:*"
- "awk:*"
- "sed:*"
- "sort:*"
- "echo:*"
- "ls:*"
---
## Git Navigation Tools
Standard bash tools for analyzing git history and repository source code are available.
### Available Commands
- `git log:*` — browse commit history with any flags
- `git diff:*` — compare commits, branches, or files
- `git show:*` — inspect commit details and file contents at a point in time
- `find:*`, `grep:*`, `cat:*`, `head:*` — filesystem navigation and content search
- `wc:*`, `awk:*`, `sed:*`, `sort:*` — text processing and statisticsUsage Example:
# In a workflow
imports:
- shared/git-bash-tools.mdImpact
- Workflows affected: 8+ workflows
- Lines saved: ~10-15 per workflow, ~80-120 total
- Maintenance benefit: A single place to audit what git operations are allowed across all code-analysis agents. When adding a new navigation command (e.g.
git blame:*), one change propagates everywhere.
Implementation Plan
- Create
.github/workflows/shared/git-bash-tools.mdwith the configuration above - Update
architecture-guardian.md— replace inline bash allowlist withimports: - shared/git-bash-tools.md - Update
breaking-change-checker.mdsimilarly - Update
test-quality-sentinel.mdsimilarly - Update
design-decision-gate.mdsimilarly - Update
daily-compiler-quality.mdsimilarly - Update remaining identified workflows
- Run
make recompileand verify all lock files regenerate cleanly - Update documentation if any references to per-workflow bash tool config exist
Related Analysis
This recommendation comes from the Workflow Skill Extractor analysis run on 2026-04-09.
Generated by Workflow Skill Extractor · ● 2.6M · ◷
- expires on Apr 11, 2026, 11:43 AM UTC
Reacted by Copilot
Activity
Copilot commentedon Apr 9, 2026
The agent encountered an error and was unable to start working on this issue: This may be caused by a repository ruleset violation. See granting bypass permissions for the agent, or please contact support if the issue persists. (Request id: 2001:376B9B:371E154:DF93345:69D7949C)
github-actions commentedon Apr 9, 2026
🍪 Issue Monster has assigned this to Copilot!
I've identified this issue as a good candidate for automated resolution and assigned it to the Copilot coding agent.
The Copilot coding agent will analyze the issue and create a pull request with the fix.
Om nom nom! 🍪
github-actions commentedon Apr 11, 2026
This issue was automatically closed because it expired on 2026-04-11T11:43:32.396Z.