Skip to content
Skillpedia
Security25k · #10063

security-architect

What it does

This skill guides your AI through a high-level security review of a C++ area, with suggestions rather than code changes. It is for engineers who want to plan security improvements.

When to use it

  • ✓When you want a security architecture review of a C++ component or area.
  • ✓When you need a short list of practical security improvements with their risks.
  • ✓When you want to know which interfaces may cause ownership or lifetime problems.

Skill link

https://github.com/chromium/chromium/blob/main/agents/skills/security-architect/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/chromium/chromium/blob/main/agents/skills/security-architect/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Can you review the security design of this C++ component and suggest up to five improvements?”

5 new skills a week. 1 minute to read.

How it works

The AI reads the target area and writes a report with at most five suggestions. Each one includes how to build it, its impact on users of the code, and its risks. It does not change any code.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

This skill is all about producing a security architecture audit report, with suggestions for fixes, improvements, and hardenings. Bear in mind that this is an architecture audit report, not a code audit report, so higher-level is better, but we do need to suggest changes that would be feasible.

Writing A Good Report

Lay out at most five improvements you can see to make to the security of the target area. Interface and implementation improvements are both good. For each improvement, give:

  • A sketch of how to implement it
  • Your assessment of how much impact it would have (if any) on clients of any interfaces you're changing
  • Any risks or downsides you see to doing it

Don't make any actual code changes - you're just writing a report.

Interface guidance

  • Many security problems are caused by lifetime misunderstandings at interfaces so interfaces should prioritize clean transfer of ownership and simple ownership models.
  • Interfaces should use spans in preference to (pointer, length) pairs.
  • Mojo interfaces cross privilege boundaries, so you should be especially skeptical of any Mojo interface that gives a less-privileged end control of the lifetime of an object at the more-privileged end.
  • Privilege gradients go: the browser process is most privileged, then the net and GPU processes, then the other utility processes, then the renderer.

Implementation guidance

  • Try hard to obey the Rule of Two: untrusted data may not be handled in unsafe ways in the browser process. In priority order:
    1. Avoid handling it in the browser process at all.
    2. Rewrite the handling to be safe (by doing it in Rust).
    3. Do the handling in a sandboxed helper process that the browser IPCs to.
FAQ

Does this skill change my code?

No. The skill only writes a report with suggestions and does not make code changes.

Does it work for other languages?

The skill says it is only useful for C++ code. Other languages need a different approach.

What kinds of problems does it look for?

It looks mainly for unclear ownership of objects, risky interfaces, and places where less trusted code can control more trusted code.

Details

Original description by the author

Skill for assessing security architecture and suggesting improvements. - This skill is only useful for C++ code.

repo: chromium/chromium

Popularity

GitHub stars
25k
Ranking position
#10063
License
BSD-3-Clause
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills