Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

add-best-practice

Skill by brave

Adds a new best practice to the brave-core best-practices docs. It checks for duplicates, assigns a stable ID and can open a pull request.

  • Score 87
  • 3.8k stars
  • MPL-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install add-best-practice

Built from the published package, never by AI.

git clone --depth 1 https://github.com/brave/brave-core /tmp/brave-core && mkdir -p ~/.claude/skills && cp -r /tmp/brave-core/agents/skills/add-best-practice ~/.claude/skills/add-best-practice

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install add-best-practice in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The add-best-practice skill adds a new rule to the correct document in the brave-core best-practices folder. It first searches existing docs for duplicates, then picks the target document by category. If no document fits a broader topic, it can create a new category doc and register an ID prefix. When the argument is a GitHub PR comment URL, the skill fetches the comment and reads the code it refers to before drafting.

Drafts go through a review subagent and are shown to the user for approval before anything is written. The skill assigns the next ID by hand, runs a validation script, formats the Markdown and commits the change. It can then create a branch and open a pull request with the GitHub CLI. It is meant for contributors to brave-core who maintain its best-practice rules.

Written from the project's SKILL.md and checked against it.

What it can do

  • Duplicate checkSearches existing best-practice docs for rules that already cover the same topic before adding one.
  • Document selectionLists document categories and picks the best target doc, or creates a new category doc if needed.
  • Stable ID assignmentAssigns the next ID by incrementing the highest existing number for the document prefix.
  • PR comment contextFetches a GitHub review comment and reads the source code around it before drafting the entry.
  • Subagent validationRuns a review subagent to check the drafted entry for accuracy before showing it to the user.
  • Commit and pull requestCommits the change and can create a branch and open a pull request with the gh CLI.

What you need

  • git
  • gh (GitHub CLI)
  • python3
  • pnpm (for pnpm run format)
  • A brave-core checkout at src/brave

Try asking

  • Add a best practice about avoiding raw pointers in new C++ code
  • Add a bp for using base::Value instead of raw JSON strings
  • Check whether a best practice on test naming already exists

Good to know

  • Designed to run from the brave-core src/brave directory
  • Requires an explicit user approval step before the entry is written
  • Changed docs must be formatted with pnpm run format before committing

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: agents/skills/add-best-practice/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md11 KB

Alternatives to add-best-practice

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

add-best-practice: common questions

Does the skill check whether a best practice already exists?

Yes. It searches all existing best-practice docs for keywords and reads matching sections before adding anything. If a duplicate is found, it stops and reports the existing rule.

How are the new IDs chosen?

The skill increments the highest existing ID for the target document's prefix by one. It never reuses old IDs or fills gaps in the sequence.

Can it add a best practice from a GitHub review comment?

Yes. If the argument is a GitHub PR comment URL, the skill gathers the comment, its thread and the code it refers to before drafting the entry.

How do I install add-best-practice?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is add-best-practice free?

The code is published under the MPL-2.0 licence. The service it connects to may have its own pricing.

Is add-best-practice safe to use?

It scores 87 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to add-best-practice?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

add-best-practice Install

Add to stack

Loading.