Skip to content

chore: add a skill that runs the cleanup audit and pass - #538

Merged
PiquelChips merged 1 commit into
mainfrom
chore/cleanup-pass-skill
Nov 19, 2026
Merged

PiquelChips merged 1 commit into
mainfrom
chore/cleanup-pass-skill

Conversation

@PiquelChips

@PiquelChips PiquelChips commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

piqueld's cleanup audit and pass have a skill now (sourceorigin-dev/piqueld#356). Without one here, a cleanup of SourceOrigin would mean rebuilding the area split, the checks, the agent briefs and the review routing from scratch.

This ports that skill as sourceorigin-cleanup, adapted to this repo:

  • Audit: scripts/stats.py measures the repo. Lockfiles are found by name, since .gitattributes doesn't mark them here. The TypeScript SDK's tests and the browser suite count as test code. It counts how many Rust tests need PostgreSQL, and breaks areas over 30,000 lines into their modules. CI's rust-coverage artifact supplies coverage.
  • Areas: apps/auth-service (59k lines) splits into Sign-in and OIDC, Accounts, Operations, Admin (with crates/ui/src/admin) and Pages (with the rest of crates/ui, apps/web and tests/browser). Database, SDKs and Tooling are the other areas. Every hand-written file has one owner, and each area is under 22k lines. Title scopes follow this repo's history.
  • Checks: per-package Clippy, rustdoc, doc tests and tests run with --all-features, since a per-package build of sourceorigin-common enables none of its features. Clippy then runs again without them. just db test replaces just test -p for auth and the repository. cargo semver-checks runs for the published crates, the web checks for TypeScript and JavaScript, and just docs screenshots proves pages unchanged. CI runs every job on drafts here, so the browser suite, the images, packaging and MSRV are left to it.
  • Pre-flight: the pass starts by running just validate and just db test on main, and fixes any failure first.
  • Issues: the pass, and each bug, gets a GitHub issue, not a Linear one. Branches are refactor/<n>-… and fix/<issue>-…, and fix PRs say Closes #<issue>. A vulnerability goes to the owner only (SECURITY.md).
  • Boundary lane: it looks at the crate layering, such as SQL only in crates/database and no decisions in crates/ui. It also checks the published crates' API, duplication between the two SDKs and common's wire types, and what the CLI, settings, developer console and admin dashboard each reimplement.

Proof: stats.py runs on main, and the reviewers matched its counts against cloc and grep (622 Rust tests, 403 of them needing PostgreSQL; 72 TypeScript and 43 browser tests). just docs passes. The council checked every recipe, path, label, CI behavior and naming convention against the repo, and ran the --all-features Clippy, rustdoc, test and semver-checks commands.

Found along the way: Clippy on Rust 1.100, the current stable, fails on main in crates/ui (crates/ui/src/settings/timeline.rs:127, map_unwrap_or). rust-toolchain.toml tracks unpinned stable. The skill's pre-flight would catch it, but this PR doesn't fix it.

Council review

Rounds: 6

Delegate Round 1 Round 2 Round 3 Round 4 Round 5 Round 6
GPT 6.1 Sol 9/10 9/10 9/10 10/10 10/10 9/10
Claude Opus 5.5 8/10 8.5/10 9/10 9/10 9/10 9/10
Claude Fable 5.2 8/10 9/10 9/10 9/10 9/10 9/10

Rounds 4 and 5 found no blocker and no should-fix left open, and all three approved the final head in round 6. Left out on purpose: a finer module breakdown of src/web and crates/ui in stats.py, a branch name for the pre-flight fix PR, and where orchestrator_capabilities is first called. The harness and file-pr already cover the last two.

Note

Written by Claude Opus 5.5 in Claude Code and reviewed by GPT 6.1 Sol, Claude Opus 5.5 and Claude Fable 5.2 (via T3 Code)

🤖 Generated with Claude Code

@coderabbitai

coderabbitai Bot commented Nov 19, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 33 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e21302f4-74e2-4cd7-aad9-6adc12c90d71
Commits

Reviewing files that changed from the base of the PR and between fcd7071 and fd99f29.

Files selected for processing: 4

  • .agents/skills/sourceorigin-cleanup/SKILL.md
  • .agents/skills/sourceorigin-cleanup/references/agent-brief.md
  • .agents/skills/sourceorigin-cleanup/references/review-brief.md
  • .agents/skills/sourceorigin-cleanup/scripts/stats.py
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@PiquelChips
PiquelChips added this pull request to the merge queue Nov 19, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 19, 2026
@PiquelChips
PiquelChips added this pull request to the merge queue Nov 19, 2026
Merged via the queue into main with commit 467e813 Nov 19, 2026
13 checks passed
@PiquelChips
PiquelChips deleted the chore/cleanup-pass-skill branch November 19, 2026 22:14
@github-project-automation github-project-automation Bot moved this from Needs Triage to Done in sourceorigin.dev Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant