agentleFS
raphaelcmraphaelcm/dep-steward/skills/install/SKILL.md

install

Skill4 starsChanged 2 months agoMITView on GitHub

Install the dep-steward Dependabot pipeline into the current repository — preflight the prerequisites, show what will change, then run the installer.

13 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use update.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • AnthropicSkill

    update

    Sync tasks and refresh memory from your current activity. Use when pulling new assignments from your project tracker into TASKS.md, triaging stale or overdue tasks, filling memory gaps for unknown people or projects, or running a comprehensive scan to catch todos buried in chat and email.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 11 edited versions we read keep these.

  • 2

    Distinctive

    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. Distinctive:

    Run these and tell the user what you found.

    line 14
  2. Very specific:

    Run the same command without --dry-run when both of these hold:

    line 32
  3. Very specific:

    When the dry run lists CI secrets to copy into the Dependabot store, add --copy-ci-secrets: without it a run with no terminal copies …

    line 37
  4. Distinctive:

    Run interactively, the installer mints the token for them, verifies it authenticates before storing it, and opens the App page.

    line 50

“Common” is measured: kept by at least 6 in 10 of the 11 edited versions of this file we could read. “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

Set up dep-steward in the repository the user is working in: Dependabot auto-updates the dependencies, a Claude agent auto-reviews each PR it opens, and a deterministic gate auto-merges only when it is safe.

The installer is install.sh from raphaelcm/dep-steward. It is idempotent, so re-running it is safe. Everything below runs it non-interactively (its interactive prompts are all TTY-guarded, so it never hangs when a tool runs it — it either uses a flag you passed or stops with a clear message).

Pass $ARGUMENTS through to the installer if the user gave any.

1. Preflight — check, report, don't guess

Run these and tell the user what you found. Each failure has a specific fix, so name the fix rather than a generic error.

  • In a GitHub repo: gh repo view --json nameWithOwner,defaultBranchRef — if this fails, the user is not in a GitHub repo or gh cannot see it.
  • gh authenticated with the right scopes: gh auth status. It needs repo and workflow. Missing scopes are fixed with gh auth refresh -h github.com -s repo,workflow.
  • A CI workflow exists: gh workflow list --json name,state. The gate keys off one workflow's exact name and cannot fire without it. If there are several and none is obviously "the" CI, ask the user which one gates merges, then pass --ci-name "<name>".
  • The token secret: gh secret list --repo <NWO> and gh secret list --repo <NWO> --app dependabot. CLAUDE_CODE_OAUTH_TOKEN must be in both stores. A Dependabot-triggered run reads only the Dependabot store, so a token that is only in Actions leaves the review job with an empty token on exactly the PRs it exists to review.
  • The Claude Code GitHub App: there is no API that reports this reliably. Treat it as required and tell the user to confirm it at https://github.com/apps/claude → Configure → add this repo. Autofix pushes its fixes as this App, which is what makes CI run on them; without it, a fix goes out with the workflow's token and CI does not start on it by itself. Reviews and fix drafts do not need it.

2. Show what will change, before changing it

sh -c "$(curl -fsSL https://raw.githubusercontent.com/raphaelcm/dep-steward/main/install.sh)" -- --dry-run

Add --ci-name "<name>" when you determined it in preflight, plus anything from $ARGUMENTS. Summarize the output for the user: the files it writes into .github/, the label it creates, the secrets it sets (including any CI secrets it would copy into the Dependabot store, which CI needs to pass on Dependabot's PRs), and the repo settings it touches. It never touches their source, their existing CI workflow, branch-protection rules, or git history.

3. Install

Run the same command without --dry-run when both of these hold:

  • CLAUDE_CODE_OAUTH_TOKEN is already set in the environment, or already present in both secret stores; and
  • the user has confirmed the Claude Code GitHub App has access to the repo (autofix pushes its fixes as it; with --no-autofix it is not needed).

When the dry run lists CI secrets to copy into the Dependabot store, add --copy-ci-secrets: without it a run with no terminal copies nothing, and CI then fails on every Dependabot PR. Tell the user which secrets, and why, in your summary.

Otherwise stop and hand off, because the two missing pieces are browser-interactive and cannot be completed by a tool:

  • Minting a token needs claude setup-token, which opens a browser and prints a token to paste.
  • Installing the GitHub App needs the user to grant access on github.com.

Give the user the exact line to run in their own terminal, and say plainly which step needs them:

sh -c "$(curl -fsSL https://raw.githubusercontent.com/raphaelcm/dep-steward/main/install.sh)"

Run interactively, the installer mints the token for them, verifies it authenticates before storing it, and opens the App page.

4. Report

Tell the user what landed and what is left:

  • The files now in .github/ are ordinary changes in their working tree — they review and commit them like any other change.
  • Anything the installer warned about (auto-merge not enabled, CI not a required status check, a secret it could not set) with the one command that fixes each.
  • What happens next: Dependabot opens grouped minor/patch PRs that merge on CI-green with no model call, and individual major PRs that get a changelog-grounded Claude review. Anything uncertain is escalated with the needs-human-review label and assigned to them.
  • /dep-steward:summary reports what the pipeline has handled once it has been running.

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.