Skip to content

Route agents to the repository's security conventions through a new writing-secure-code skill - #245

Merged
QuintinWillison merged 1 commit into
mainfrom
writing-secure-code-skill
Dec 2, 2026
Merged

QuintinWillison merged 1 commit into
mainfrom
writing-secure-code-skill

Conversation

@QuintinWillison

Copy link
Copy Markdown
Member

🤖 Claude's Summary

Adds a writing-secure-code skill. An agent loads it when a change handles the project key, an end user's token or data, or shapes what reaches an error or a log. It also loads for a suppression, a reported vulnerability and a security review.

The skill routes, as the others do. The conventions go into a new "Secure Design and Coding" section of DEVELOPMENT.md, where human contributors read them too. They set down what recent security fixes established, among them #227, #232, #234, #237, #241, #243 and #244.

Three smaller changes come with it:

  • Commentary gains an exception to "contract, not rationale". The comment on a security control may say what exposure it closes, as the comment on redirect confinement already does.
  • Concurrency gains a rule that a lock which guards state is never held across I/O.
  • decisions.md said that no log emission rises above debug. Since Auth module: Add Session.AutoRefresh and Session.AddEventListener #180 a session listener's panic is logged at error level, so the record now says which failures are logged above debug.

The skill points to Supabase's internal security review and threat modeling skills without saying where they live, since outside contributors cannot reach them. It also tells an agent where to keep scanner exports and write-ups of a vulnerability not yet fixed: out of the repository, or in the git-ignored user.transient/ folder.

…tes to in `DEVELOPMENT.md`, and correct the logging record in `decisions.md` that the skill cites.

Co-Authored-By: Claude <noreply@anthropic.com>
@QuintinWillison QuintinWillison self-assigned this Dec 1, 2026
@QuintinWillison QuintinWillison added the documentation Improvements or additions to documentation label Dec 1, 2026
@QuintinWillison
QuintinWillison marked this pull request as ready for review December 1, 2026 12:24
@QuintinWillison
QuintinWillison removed this pull request from stack #242 December 2, 2026 11:02
Base automatically changed from core-error-text-stays-out-of-logs to main December 2, 2026 11:04
@QuintinWillison
QuintinWillison merged commit 62bc83f into main Dec 2, 2026
12 checks passed
@QuintinWillison
QuintinWillison deleted the writing-secure-code-skill branch December 2, 2026 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant