Skip to content

docs(blog): "How to Use AI Safely and Responsibly"#7903

Merged
sneub merged 4 commits into
mainfrom
blog/how-to-use-ai-safely-and-responsibly
May 19, 2026
Merged

docs(blog): "How to Use AI Safely and Responsibly"#7903
sneub merged 4 commits into
mainfrom
blog/how-to-use-ai-safely-and-responsibly

Conversation

@sneub
Copy link
Copy Markdown
Contributor

@sneub sneub commented May 19, 2026

Summary

Adds a blog post — How to Use AI Safely and Responsibly — with practical security guidelines for developers using AI coding assistants (Claude Code, Cursor, Copilot, Windsurf, Zed). Covers MCP token scopes, secrets management, filesystem isolation, agent execution risks on macOS, permission allowlists, vetting skills and MCP extensions, prompt injection, and reviewing AI-generated code.

The post was originally drafted internally by Luiz Martins and Matthias Oertel; this PR brings it into the blog and adapts it to the blog's conventions.

Reviewer checklist

  • Technical accuracy of every MUST / SHOULD recommendation
  • Voice and tone — was originally an internal document; verify the rephrased lines still ring true for an external audience (especially the introduction and the closing call to consult security/infra)
  • Link resolution — every external link (Claude Code docs, MCP spec, OWASP, Doppler, etc.)
  • Table rendering of the four tables
  • :::warning / :::tip admonitions render as expected
  • Code-fence languages (now all bash for shell snippets, json for JSON, python for the Python exfil example)
  • DevRel sign-off

Conversions applied to the source draft

From To
Notion <aside> blocks fumadocs :::warning / :::tip / :::note directives (mapped by emoji — 🚨 → warning, 💡 / 📊 → tip, 🚩 → warning)
# 0. TLDR, # 1. Introduction, … ## TL;DR, ## Introduction, … (numbering dropped; single H1 from frontmatter title)
Code fences tagged json / jsx containing shell bash
Phrasing implying an internal audience ("When in doubt reach out to an experienced infra / security engineer", "This document provides security guidelines for all developers using AI coding tools.") Softer external-audience phrasing
Mermaid graphs MDX comment TODOs pointing to suggested image paths

Notes

  • No Linear reference. CONTRIBUTING.md asks for one in the commit body; the original draft was scaffolded outside the usual issue flow. Happy to add one if reviewers prefer.
  • Lint not run locally. pnpm check couldn't run in the working checkout (node_modules not installed). The check script targets .ts/.tsx/.js via oxfmt/oxlint and would not touch MDX content, so I do not expect lint to surface anything; flagging for transparency.
  • Tags: ai is the only tag from the constrained enum that clearly fits. Reviewers may want to add announcement if framing the post as one.
  • This PR was scaffolded by the content-write-blog skill. The skill normally produces a skeleton; this PR diverges from that because a near-finished draft already existed.

Summary by CodeRabbit

  • Documentation
    • New blog post: "How to Use AI Safely and Responsibly" provides comprehensive guidance on secure AI usage, covering token security, secrets management, filesystem isolation strategies, execution safety, third-party extension verification, prompt injection defense, and code validation techniques. Includes practical reference materials and risk insights.

Review Change Stack

Skeleton scaffolded via the content-write-blog skill from an existing
internal draft. Body has been adapted to the blog conventions:
Notion-style <aside> blocks converted to fumadocs directive admonitions,
section heading levels demoted from H1 to H2, code-fence languages
corrected, and internal-doc phrasing softened for an external audience.

Two diagram placeholders are left as MDX comments — the original draft
used Mermaid, which this blog does not render. Author avatars for
luiz-martins and matthias-oertel are not yet checked in.

No Linear ref — this was scaffolded outside the usual issue flow; PR
description flags it for reviewers.
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 19, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: bfbc2baf-86ae-4372-8352-9385d8b3db70

📥 Commits

Reviewing files that changed from the base of the PR and between dc85af1 and 377ea8d.

⛔ Files ignored due to path filters (4)
  • apps/blog/public/authors/luiz-martins.png is excluded by !**/*.png
  • apps/blog/public/authors/matthias-oertel.png is excluded by !**/*.png
  • apps/blog/public/how-to-use-ai-safely-and-responsibly/imgs/overview.png is excluded by !**/*.png
  • apps/blog/public/how-to-use-ai-safely-and-responsibly/imgs/sandboxing.png is excluded by !**/*.png
📒 Files selected for processing (1)
  • apps/blog/content/blog/how-to-use-ai-safely-and-responsibly/index.mdx

Walkthrough

This PR introduces a new blog post documenting best practices for safely using AI coding assistants. The post provides structured guidance across eight risk areas: token security, secrets management, filesystem isolation, macOS execution safety, long-running task controls, extension vetting, prompt injection defense, and code validation—concluding with a quick-reference table and risk statistics.

Changes

AI Safety Best Practices Blog Post

Layer / File(s) Summary
Post metadata and introduction
apps/blog/content/blog/how-to-use-ai-safely-and-responsibly/index.mdx
Frontmatter defines publication date, author, and SEO fields. Introduction frames the post's scope and risk-based organization.
Core safety guidance sections
apps/blog/content/blog/how-to-use-ai-safely-and-responsibly/index.mdx
Eight sequential sections provide actionable guidance: MCP token scopes and recommended permissions; secrets management with agent ignore/deny patterns for tools like Cursor and Claude Code; filesystem isolation using Docker and bubblewrap; macOS-specific sandboxing and permission risks; safe allowlist patterns for long-running tasks; security checks for installing skills and MCP extensions; prompt injection embedding risks and mitigations; and AI-generated code validation through review, static analysis, and CI testing.
Quick reference and conclusion
apps/blog/content/blog/how-to-use-ai-safely-and-responsibly/index.mdx
Quick reference card summarizes do/don't guidance across all eight categories. "Why this matters" section closes with published statistics on agent risk expansion.

🎯 1 (Trivial) | ⏱️ ~5 minutes

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

ESLint skipped: no ESLint configuration detected in root package.json. To enable, add eslint to devDependencies.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 19, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
blog Ready Ready Preview, Comment May 19, 2026 5:35am
docs Ready Ready Preview, Comment May 19, 2026 5:35am
eclipse Ready Ready Preview, Comment May 19, 2026 5:35am
site Ready Ready Preview, Comment May 19, 2026 5:35am

Request Review

Drops in:
- public/authors/luiz-martins.png
- public/authors/matthias-oertel.png
- public/how-to-use-ai-safely-and-responsibly/imgs/overview.png
- public/how-to-use-ai-safely-and-responsibly/imgs/sandboxing.png

Replaces the two MDX-comment TODOs in the post with real image
references. Diagrams ship as PNG (the blog renders MDX images
identically regardless of format). Directory uses the standard
"imgs/" convention shared by the rest of the blog.
@argos-ci
Copy link
Copy Markdown

argos-ci Bot commented May 19, 2026

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
default (Inspect) ⚠️ Changes detected (Review) 1 changed May 19, 2026, 5:41 AM

- Drops the "Reference links" appendix (B). Most entries were name-only
  with no URL, which read as a stub and added length without value.
- Drops the "Validation checklist" appendix (C). The same advice already
  lives inline under "Safely using skills and MCP extensions" — the
  duplicate checklist at the end was repetition, not reinforcement.
- Renames "Appendix A: Security statistics" to "Why this matters", since
  with B and C gone there is no other appendix to anchor "A" to.
- Replaces TL;DR bullet list with a 3-paragraph conversational lead.
  Quick reference card at the end is now the single takeaway artifact.
- Drops "Read it. Follow it." and the RFC 2119 framing paragraph; the
  intro now invites rather than commands.
- Strips ~30 MUST/MUST NOT/SHOULD prefixes throughout, replacing each
  with the natural-prose action bolded ("Use read-only tokens",
  "Don't allowlist destructive commands").
- Drops the bold "Risk:" prefix from each section opener; the section
  heading already signals what the section is about.
- Renames the per-section "The right way" subheads to "What to do",
  and for two sections folds the bullets directly under the section
  opener where the structure didn't need a subhead.
- Tones down the Doppler example so it reads as illustrative ("the
  same pattern works for 1Password CLI") rather than a tool plug.
- Final stats section gets a one-line closing prose tag instead of the
  ":::tip"-wrapped trailing aside.
- Removes the redundant final-sentence directive in the prompt-injection
  tip; tightens the phrasing of several callouts.

No content was removed; recommendations and examples are unchanged.
The diff is voice and shape, not substance.
@sneub sneub marked this pull request as ready for review May 19, 2026 12:07
@sneub sneub merged commit 75ffead into main May 19, 2026
14 of 16 checks passed
@sneub sneub deleted the blog/how-to-use-ai-safely-and-responsibly branch May 19, 2026 12:07
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.

2 participants