Skip to content

docs: a prompt that has a coding agent set up the Count - #12

Merged
sweepies merged 1 commit into
mainfrom
docs/agent-setup
Oct 22, 2026
Merged

sweepies merged 1 commit into
mainfrom
docs/agent-setup

Conversation

@sweepies

@sweepies sweepies commented Oct 22, 2026 •

Copy link
Copy Markdown
Owner

Getting started now opens with a prompt you can copy and paste into a coding agent:

Fetch https://raw.githubusercontent.com/sweepies/count-patchula/main/docs/agent-setup.md and follow its instructions to set up Count Patchula for this repository.

Changes

  • docs/agent-setup.md: instructions written for the agent. They have it:

    • fetch the patchula skill from main on raw.githubusercontent.com;
    • look for Renovate (and Dependabot), and check what the repository relies on against the compatibility matrix, departures and migration guide;
    • ask whether to run the Count with the CLI, the Action or the server (server recommended; Railway for hosting, with Serverless off);
    • set him up, validate with patchula config check . and remove Renovate's config;
    • ask whether to commit directly or open a PR.

    Throughout, it offers mise, never runs patchula run without --dry-run before the user confirms, and never asks for secrets in chat. Docs links are absolute and point at the site root, which is the latest release.

  • Why the file isn't in skills/patchula/: the release workflow ships that directory whole as the skill (skill/patchula=repo:skills/patchula in the packslip manifest), so a file there would be installed inside everyone's skill. docs/agent-setup.md is outside the content tree, so Astro and docs:assemble ignore it.

  • getting-started.mdx: the prompt is a static text wrap code block, using Expressive Code's copy button.

  • astro.config.mjs: neither file is a page, so the links validator can't check them. A small astro:build:done step checks that every site link in docs/agent-setup.md and skills/patchula/SKILL.md reaches a built page at the root, and a heading on it when the link has an anchor.

Verified

  • Unversioned build: passes, and a broken heading link makes it fail.
  • Versioned build with the real tasks in a scratch clone (v0.2.0 at the root): passes, with the links checked against v0.2.0's pages. The prompt appears on /next/ and isn't on the root until the next release.

🤖 Generated with Claude Code

@deepsource-io

deepsource-io Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

DeepSource Code Review

We reviewed changes in beb4a4b...1a32b84 on this pull request. Below is the summary for the review, and you can see the individual issues we found as inline review comments.

See full review on DeepSource ↗

PR Report Card

Overall Grade   Security  

Reliability  

Complexity  

Hygiene  

Code Review Summary

Analyzer Status Updated (UTC) Details
Rust Oct 22, 2026 8:58p.m. Review ↗
JavaScript Oct 22, 2026 8:58p.m. Review ↗
Shell Oct 22, 2026 8:58p.m. Review ↗
Secrets Oct 22, 2026 8:58p.m. Review ↗

Important

AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.

devin-ai-integration[bot]

This comment was marked as resolved.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
count-patchula 1a32b84 Commit Preview URL

Branch Preview URL
Oct 22 2026, 08:58 PM

Getting started opens with a prompt to paste into a coding agent. It
points the agent at docs/agent-setup.md on main, fetched from
raw.githubusercontent.com: instructions to read the patchula skill,
check a Renovate setup against the compatibility pages, ask how to run
the Count, set him up and land the change. The file sits outside
skills/patchula, which the release ships whole as the skill.

Neither file is a page, so the links validator does not see them. A
build step checks that their links to the site reach a page and heading
at the root.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@sweepies
sweepies merged commit b65f67e into main Oct 22, 2026
13 checks passed
@sweepies
sweepies deleted the docs/agent-setup branch October 22, 2026 22:11
sweepies added a commit that referenced this pull request Nov 16, 2026
…it as a link

sanitise kept [label] text untouched whenever any [ or ( followed it, so
[@alice][1] with no definition, [@org/team](see notes) or [#12][x] reached
GitHub as literal text with a live mention or backlink. A label now stays
verbatim only for a CommonMark inline destination, or a full, collapsed or
shortcut reference to a definition GitHub honours (outside code, starting
a block, one line), and never when it holds a nested link; anything else
is neutralised as prose.
sweepies added a commit that referenced this pull request Nov 16, 2026
… tui --once exit codes (#346)

* fix(notes): keep a bracketed label verbatim only when GitHub renders it as a link

sanitise kept [label] text untouched whenever any [ or ( followed it, so
[@alice][1] with no definition, [@org/team](see notes) or [#12][x] reached
GitHub as literal text with a live mention or backlink. A label now stays
verbatim only for a CommonMark inline destination, or a full, collapsed or
shortcut reference to a definition GitHub honours (outside code, starting
a block, one line), and never when it holds a nested link; anything else
is neutralised as prose.

* fix(cli): tie a discovered server to the App that advertised it; tui --once exits like lookup

Discovery trusted a patchula-server marker from any bot whose login the
advertised server named, but that server answers whatever it likes and
could hand out the real Count App's client ID, sending the user's token
to an attacker. The author's App, as GET /apps/{slug} describes it, must
now have the client ID the server gives the device flow, and that ID is
remembered with the choice, so a server that later names another App is
refused before sign-in.

tui --once always exited 0; it now shares lookup's exit code (1 on a
repository error, 4 on a failed lookup).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant