mpt-ext-task-run-repository-checks
Skill3 starsChanged 4 months agoApache-2.0View on GitHub
Run the repository-required local validation flow to verify changes are ready for commit or review. Determines the right checks for the changed scope, runs them in order, and reports failures.
In this repository34 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .cursor/rules/mpt-extension-skills.mdcCursor rule
- mpt-ext-task-apply-dashboard-jira-decisionSkill
- mpt-ext-task-commit-changesSkill
- mpt-ext-task-create-initial-epicSkill
- mpt-ext-task-create-work-branchSkill
- mpt-ext-task-dependabot-pr-policy-fixSkill
- mpt-ext-task-ensure-active-sprintSkill
- mpt-ext-task-fix-pre-commit-failuresSkill
- mpt-ext-task-fix-repository-check-failuresSkill
- mpt-ext-task-handle-pr-commentsSkill
- mpt-ext-task-move-jira-to-code-reviewSkill
- mpt-ext-task-move-jira-to-qaSkill
- mpt-ext-task-notify-pr-ready-in-teamsSkill
- mpt-ext-task-open-pull-requestSkill
- mpt-ext-task-start-jira-workSkill
- mpt-ext-task-update-docs-from-changesSkill
- mpt-ext-task-write-documentationSkill
- mpt-ext-task-write-python-unittestsSkill
- mpt-ext-tool-gh-pr-opsSkill
- mpt-ext-tool-git-branch-opsSkill
- mpt-ext-tool-jira-workitem-opsSkill
- mpt-ext-tool-teams-send-messageSkill
- mpt-ext-workflow-address-review-feedbackSkill
- mpt-ext-workflow-complete-after-mergeSkill
- mpt-ext-workflow-dashboard-failure-triageSkill
- mpt-ext-workflow-decompose-tdrSkill
- mpt-ext-workflow-fix-dependabot-prsSkill
- mpt-ext-workflow-hotfix-backportSkill
- mpt-ext-workflow-notify-pr-readySkill
- mpt-ext-workflow-send-to-reviewSkill
- mpt-ext-workflow-skill-authoringSkill
- mpt-ext-workflow-start-workSkill
- mpt-ext-workflow-update-documentationSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. About 0 are common, 15 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈15
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 10
Run the repository-required local checks and tests for the current change scope before commit or review handoff.
- Very specific: line 45
Use this shared document as the source of truth instead of restating its guidance.
- Distinctive: line 53
Read repository-specific docs when they exist, because they may extend or override shared guidance.
- Very specific: line 54
Read shared docs only when the repository explicitly points to them.
- Distinctive: line 58
Use repository docs as the source of truth for command names and ordering.
- Distinctive: line 63
If the repository requires environment refresh after dependency-lock changes, include that step before running checks.
- Very specific: line 64
If the repository relies on shared validation guidance from this package, read knowledge/build-and-checks.md using the shared-doc …
- Distinctive: line 65
Do not run unrelated setup steps that are not required for the current validation flow.
- Distinctive: line 67
Run the required checks in order.
- Distinctive: line 69
Keep command output attributable to the specific check that produced it.
- Distinctive: line 70
If the user asked for a scoped validation run and the repository supports that safely, limit execution to that scope.
- Distinctive: line 74
Treat a validation tool failing on its own configuration (for example an "unknown rule" or "unrecognized selector" error instead of a …
- Distinctive: line 76
If checks modify files automatically, report that clearly so the next task can decide whether to keep and recommit the changes.
- Distinctive: line 85
Never guess the validation commands without reading repository context first.
- Distinctive: line 86
Never silently skip a required check in the repository-defined flow.
- Distinctive: line 87
Never present a partial validation run as if it were the full repository check set.
- Distinctive: line 88
Never hide auto-fixed file changes caused by validation tools.
- Distinctive: line 89
Never mix commit creation, PR creation, or Jira transitions into this task.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Run Repository Checks
Purpose
Run the repository-required local checks and tests for the current change scope before commit or review handoff.
Use When
- The user wants to verify that current changes pass the required local validation flow.
- The task requires running repository checks before commit.
- The task requires rerunning validation after review-driven fixes.
- The repository defines local checks through repo docs,
Makefiletargets, or shared validation guidance.
Do Not Use When
- The task is only to create a branch or update Jira status.
- The task is only to create a commit without running or deciding checks.
- The task is only to open or update a pull request.
- The task is to invent a validation flow without reading repository docs first.
Inputs
- Current repository change scope.
- Repository validation rules from repo docs.
- Optional explicit scope from the user when only part of the repository should be validated.
- Installed shared package root:
${MPT_EXTENSION_SKILLS_HOME:-$HOME/.mpt-extension-skills}/currentAssumptions
- The target repository is available locally and the documented validation commands can be executed in the current environment.
- Repository-required tooling and dependencies are installed or otherwise available before the check run starts.
- Any credentials, tokens, or repository access needed by the documented validation flow are already available.
Shared References
Use this shared document as the source of truth instead of restating its guidance. When shared guidance is needed, resolve it from ${MPT_EXTENSION_SKILLS_HOME:-$HOME/.mpt-extension-skills}/current when available; otherwise read the same path from the main branch of the shared GitHub repository.
knowledge/build-and-checks.md
Workflow
- Build repository context first.
- Read the target repository
AGENTS.mdonce per session. If you already loaded it earlier in this session and still have its full contents, reuse them instead of re-reading; if the context was summarized or you are unsure it is complete, read it again. Do not pre-load shared docs in this step; read them lazily only when the repository points to them. - Read repository-specific docs when they exist, because they may extend or override shared guidance.
- Read shared docs only when the repository explicitly points to them. Resolve those shared docs from
${MPT_EXTENSION_SKILLS_HOME:-$HOME/.mpt-extension-skills}/currentwhen available; otherwise read them from themainbranch of the shared GitHub repository.
- Resolve the required validation flow.
- Determine which local commands are required for the current change scope.
- Use repository docs as the source of truth for command names and ordering.
- For repositories that follow this shared package validation guidance, read
knowledge/build-and-checks.mdusing the shared-doc resolution rule from the repository context step, and use it with related repository docs as the shared reference.
- Prepare the environment only as required by the repo workflow.
- Confirm prerequisite tooling required by the repository validation flow.
- If the repository requires environment refresh after dependency-lock changes, include that step before running checks.
- If the repository relies on shared validation guidance from this package, read
knowledge/build-and-checks.mdusing the shared-doc resolution rule from the repository context step, and use it as the source of truth for commit-oriented preparation such aspre-commit. - Do not run unrelated setup steps that are not required for the current validation flow.
- Run the required checks in order.
- Execute the repository-required validation commands in the documented sequence.
- Keep command output attributable to the specific check that produced it.
- If the user asked for a scoped validation run and the repository supports that safely, limit execution to that scope.
- Interpret failures clearly.
- Separate environment or setup failures from real lint, test, or build failures.
- Treat a validation tool failing on its own configuration (for example an "unknown rule" or "unrecognized selector" error instead of a finding tied to a specific file or line) as an environment/setup failure, not a real finding; see the stale-toolchain pattern in
knowledge/build-and-checks.md. - Identify which command failed and which files or checks are implicated.
- If checks modify files automatically, report that clearly so the next task can decide whether to keep and recommit the changes.
- Report the validation result.
- State which commands were run.
- State whether the validation passed fully, failed, or was only partially run.
- Show the blocking failures clearly when validation does not pass.
Guardrails
- Never guess the validation commands without reading repository context first.
- Never silently skip a required check in the repository-defined flow.
- Never present a partial validation run as if it were the full repository check set.
- Never hide auto-fixed file changes caused by validation tools.
- Never mix commit creation, PR creation, or Jira transitions into this task.
Expected Outcome
The repository-required local validation flow for the current change scope is run in the documented order, with a clear pass/fail result and precise reporting of any blockers or auto-generated file changes.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

