agentleFS
ErricccErriccc/osborn/.claude/skills/ci-typecheck/SKILL.md

ci-typecheck

Skill8 starsChanged 14 days agoMITView on GitHub

Type-check agent/ and frontend/ on GitHub instead of installing and building locally. Use when you need tsc results for your changes and the machine has no node_modules, or a local install would be slow or heavy.

  • Commits and pushes

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    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
  1. Very specific:

    Start it on a branch that is already pushed (packages is both, agent or frontend.

    line 19
  2. Very specific:

    Do not push secrets or unreviewed work to a shared branch to get a check.

    line 49

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Type checks on GitHub

The typecheck workflow (.github/workflows/typecheck.yml) runs tsc --noEmit for agent/ and frontend/ on GitHub, with npm's cache. Nothing is installed or built here.

Run it

Pick one:

  1. Push the work to a check/ branch. Every push there starts the workflow:
    git push origin HEAD:check/<topic>
  2. Start it on a branch that is already pushed (packages is both, agent or frontend; default both):
    gh workflow run typecheck.yml --ref <branch> -f packages="agent"

A pull request that changes agent/src TypeScript or its package files runs the agent check by itself. frontend-lint.yml already checks the frontend on pull requests.

Both ways need a push, and every git push (a check/ branch too) is refused until the steward has signed off that commit (.claude/hooks/pre-pr-gate.py here, agent/src/steward-gate.ts in Osborn). gh workflow run only works once this workflow is on the default branch.

Read the result

gh run list --workflow typecheck.yml --branch <branch> --limit 1
gh run watch <run-id> --exit-status
gh run view <run-id> --log-failed | grep -E "error TS[0-9]+" | head -50

Each package is its own job (tsc (agent), tsc (frontend)), so one failing does not hide the other. Errors print as file(line,col): error TSxxxx: message, one per line.

Rules

  • A run takes about one to three minutes. Push once with everything you want checked, rather than once per edit.
  • check/ branches are scratch: delete them when you are done (git push origin --delete check/<topic>).
  • Do not push secrets or unreviewed work to a shared branch to get a check. Use check/.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.