Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 19 additions & 13 deletions .github/workflows/claude-code-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,24 +93,30 @@ jobs:
any issue it references with `gh issue view <number>`. Read the diff with
`gh pr diff <PR NUMBER>`, and changed files in full where the diff isn't
enough context.
2. THE METADATA (AGENTS.md Rule 1). Every source added or changed is
registered with plugin.RegisterProvider with complete, accurate metadata:
the provider's id, name, category and homepage; each source's id, layer,
what it watches, the URLs it reads and its page. There is no hand-kept list
(no docs/plugins.md, no plugins.json in the repo): one reappearing is
blocking.
3. PROVIDER PAGE. Every new provider has providers/<api>.md copied from
providers/_template.md, with a real **Why this source**: the link, the date
it was checked, why it's the best source, the alternatives not used, and a
short quote. A changed source updates that page.
2. THE METADATA (AGENTS.md Rule 1). Every source added or changed is in its
provider's providers/<provider>/provider.go, the provider's one
plugin.RegisterProvider call, with complete, accurate metadata: the
provider's id, name, category and homepage; each source's id, layer, what
it watches, the URLs it reads and the packages it covers. There is no
hand-kept list (no docs/plugins.md, no plugins.json in the repo): one
reappearing is blocking.
3. PROVIDER PAGE. Every source has a section in its provider's page,
providers/<provider>/README.md (a new provider's from
docs/provider-template.md), with a real **Why this source**: the link, the
date it was checked, why it's the best source, the alternatives not used,
and a short quote. A changed source updates its section.
4. TESTS AND SOURCES. A golden test over a real saved copy of the source
(testdata/golden/<api>.json); a row in testdata/README.md for each file
(providers/<provider>/testdata/golden/<provider>-<source>.json); a row in
the provider's testdata/README.md for each file
(URL, date fetched, license, quote of the part the plugin reads); one pinned
drop test (a realistic input that produces no event); every event carries
the source URL and a quote. A golden file edited without the PR explaining
why the new output is right is blocking.
5. PLUGIN CODE. Fetch only through env.Get or kit/: no net/http outside the
fetch layer (core/fetch/, core/kit/, plugins/openapi/adapter/), no filesystem outside testdata/, no
5. PLUGIN CODE. How to read lives in kinds/<kind>/ and imports no provider;
what to read lives in providers/<provider>/ and imports only core/ and
kinds/, never another provider: code specific to one provider in a kind
is blocking. Fetch only through env.Get or kit/: no net/http outside the
fetch layer (core/fetch/, core/kit/), no filesystem outside testdata/, no
database. Precision over recall: flag any path that could emit an event for
something that isn't a real change; a wrong event becomes a wrong pull
request in someone's repo. Don't change contract/fixtures/ here first (the
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/claude.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@ jobs:
--permission-mode default
--allowedTools "mcp__github_inline_comment__create_inline_comment,Read,Grep,Glob,Bash(gh pr view:*),Bash(gh pr diff:*),Bash(gh issue view:*)"
--disallowedTools "Edit,Write,MultiEdit,NotebookEdit,WebFetch,WebSearch,Bash(git push:*),Bash(git commit:*),Bash(git add:*),Bash(git rm:*),mcp__github_file_ops__commit_files,mcp__github_file_ops__delete_files"
--append-system-prompt "This is patch-it-plugins, a public repo of source plugins. Everything you write is public. You can only read and comment; you can't change files or run code, so if asked to, say so and describe the change instead. When asked to review a pull request (for example '@claude review'), check it against AGENTS.md: (1) every new or changed source is registered with plugin.RegisterProvider with complete, accurate metadata (provider id, name, category, homepage; source id, layer, what it watches, URLs, page), and no hand-kept list of plugins comes back; (2) every new provider has providers/<api>.md from providers/_template.md with a real 'Why this source' (link, date checked, why it's best, alternatives, quote); (3) a golden test over a real saved source, a testdata/README.md row (URL, date fetched, license, quote), one pinned drop test, every event carries its source URL and a quote, and golden edits are explained; (4) fetch only through env.Get or core/kit/, no net/http outside core/fetch/, core/kit/ and plugins/openapi/adapter/, no filesystem outside testdata/; (5) precision over recall: flag anything that could emit an event for a non-change; (6) nothing private: no credentials, internal hostnames or service names, links to private repos or tickets, customer names, or links to AI sessions. You can't run the tests; say that CI_go covers them. Start with one verdict line ('✅ Ready to merge', '⚠️ Merge after fixes' or '❌ Not ready'), then a table of rule | status | evidence, blocking bugs, and clearly marked non-blocking suggestions. Be kind and specific: many authors are outside contributors. Never include a Claude session ID or claude.ai link."
--append-system-prompt "This is patch-it-plugins, a public repo of source plugins. Everything you write is public. You can only read and comment; you can't change files or run code, so if asked to, say so and describe the change instead. When asked to review a pull request (for example '@claude review'), check it against AGENTS.md: (1) every new or changed source is registered with plugin.RegisterProvider, once per provider in providers/<provider>/provider.go, with complete, accurate metadata (provider id, name, category, homepage; source id, layer, what it watches, URLs, packages), and no hand-kept list of plugins comes back; (2) every source has a section in its provider's page, providers/<provider>/README.md (a new provider's from docs/provider-template.md), with a real 'Why this source' (link, date checked, why it's best, alternatives, quote); (3) a golden test over a real saved source, a testdata/README.md row (URL, date fetched, license, quote), one pinned drop test, every event carries its source URL and a quote, and golden edits are explained; (4) fetch only through env.Get or core/kit/, no net/http outside core/fetch/ and core/kit/, no filesystem outside testdata/; how to read lives in kinds/ and imports no provider, what to read in providers/<provider>/, importing only core/ and kinds/; (5) precision over recall: flag anything that could emit an event for a non-change; (6) nothing private: no credentials, internal hostnames or service names, links to private repos or tickets, customer names, or links to AI sessions. You can't run the tests; say that CI_go covers them. Start with one verdict line ('✅ Ready to merge', '⚠️ Merge after fixes' or '❌ Not ready'), then a table of rule | status | evidence, blocking bugs, and clearly marked non-blocking suggestions. Be kind and specific: many authors are outside contributors. Never include a Claude session ID or claude.ai link."
Loading