.github/skills/pr-review/SKILL.md
PR review workflow for the Conscius project. USE WHEN: user opens a pull request, asks to check CI status, mentions SonarCloud or Sourcery feedback, asks if a PR is ready to merge, or needs to resolve a merge conflict. EXAMPLES: 'check if the PR is ready', 'CI failed on my PR', 'SonarCloud flagged something', 'is this ready to merge?', 'fix merge conflict', 'review PR feedback'.
npx skillsauth add jwill9999/conscius pr-reviewInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
git branch --show-currentgit status -sb | head -1git log --oneline -3$ARGUMENTS
After opening any PR, proactively fetch CI/CD feedback before declaring work ready to merge. Do not wait to be asked.
| Checkpoint | Action |
| --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| After pushing a task branch | If a PR exists, run npm run pr:feedback -- --branch <current-branch> and inspect the output |
| After opening a PR | Poll PR checks until they settle, then rerun npm run pr:feedback -- --pr <number> |
| After fixing review feedback | Rerun local IDE diagnostics first, then rerun npm run pr:feedback; verify the finding is gone and resolve/close the corresponding feedback item |
| Before recommending merge | Use the feedback script to review SonarCloud/Sourcery signals; fix any flagged bugs/vulnerabilities, then close the loop on the related feedback items |
| Before opening an epic PR to main | Verify all task PRs merged cleanly; run full suite locally (npx nx run-many -t typecheck,lint,test,build --all) |
github-mcp-server-actions_list — list workflow runs and their statusgithub-mcp-server-pull_request_read with get_check_runs — check CI pass/fail on a PRgithub-mcp-server-issue_read with get_comments — read SonarCloud and Sourcery bot feedbackgithub-mcp-server-get_job_logs — fetch logs for failed CI jobside-get_diagnostics — first local source for SonarQube/Sourcery diagnostics before querying GitHubnpm run pr:feedback -- --pr <number> — repo-local summary of PR checks plus SonarCloud/Sourcery comment countsAfter any git push to a task branch with an open PR:
npm run pr:feedback -- --branch "$(git branch --show-current)"
If checks are still pending, poll the PR checks first and rerun the script once they complete.
When fixing SonarCloud or Sourcery feedback, do not stop at the code change.
ide-get_diagnostics) to confirm what is currently flagged.npm run pr:feedback -- --pr <number>.SonarCloud:
Sourcery AI:
Always check mergeable_state from pull_request_read (method: get).
If mergeable_state is "dirty":
git checkout <task-branch>
git rebase origin/<base-branch>
# resolve any conflicts, then:
git rebase --continue
git push --force-with-lease
Do not declare a PR ready to merge if mergeable_state is anything other than "clean".
After every push to main, GitHub Actions auto-commits chore(changelog): update CHANGELOG.md [skip ci], causing non-fast-forward rejections on the next local push. Fix:
git pull --rebase && git push
testing
Manage SESSION.md and SUMMARY.md for the Conscius project. USE WHEN: user says 'update session', 'update SESSION.md', 'end of session', 'taking a break', 'stepping away', 'compress conversation', 'add summary', or when completing an epic/task and session state needs recording. EXAMPLES: 'update the session', 'let's update session.md', 'add a summary segment', 'I am done for today'.
tools
Plan, document, and manage epics, features, tasks, and backlog items for the Conscius project. Creates entries in both the markdown planning docs (docs/planning/) and the Beads task graph (bd CLI). Use this skill for all planning work. Supported slash commands: /new-epic, /new-feature, /add-task, /update-status, /close-feature, /archive-feature, /new-backlog, /move-to-feature, /list-features, /list-backlog, /sync-beads, /help /planning
development
Explore and understand Nx workspaces. USE WHEN answering questions about the workspace, projects, or tasks. ALSO USE WHEN an nx command fails or you need to check available targets/configuration before running a task. EXAMPLES: 'What projects are in this workspace?', 'How is project X configured?', 'What depends on library Y?', 'What targets can I run?', 'Cannot find configuration for task', 'debug nx task failure'.
development
Helps with running tasks in an Nx workspace. USE WHEN the user wants to execute build, test, lint, serve, or run any other tasks defined in the workspace.