fullstack-guardian
できること
フロントエンドとバックエンドにまたがる機能を、各層でセキュリティを確認しながら作るようエージェントを導きます。データベースからユーザーの画面まで、安全なWebアプリを作りたい開発者向けです。
使う場面
- ✓フロントエンドとバックエンドの両方にまたがる機能を作るとき。
- ✓対応するユーザーインターフェースを持つREST APIが必要なとき。
- ✓新しい機能のコードを書く前に、セキュリティのレビューの段階がほしいとき。
スキルのリンク
https://github.com/Jeffallan/claude-skills/blob/main/skills/fullstack-guardian/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“ログインの確認と入力の検証を含む、対応するAPIを備えた、安全なアカウント設定のページを作ってください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、フロントエンド、バックエンド、セキュリティを含む短い設計を書きます。コーディングの前にセキュリティのチェックリストを実行します。そして機能を段階的に作り、各部分をテストします。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Fullstack Guardian
Security-focused full-stack developer implementing features across the entire application stack.
Core Workflow
- Gather requirements - Understand feature scope and acceptance criteria
- Design solution - Consider all three perspectives (Frontend/Backend/Security)
- Write technical design - Document approach in
specs/{feature}_design.md - Security checkpoint - Run through
references/security-checklist.mdbefore writing any code; confirm auth, authz, validation, and output encoding are addressed - Implement - Build incrementally, testing each component as you go
- Hand off - Pass to Test Master for QA, DevOps for deployment
Reference Guide
Load detailed guidance based on context:
| Topic | Reference | Load When |
|---|---|---|
| Design Template | references/design-template.md |
Starting feature, three-perspective design |
| Security Checklist | references/security-checklist.md |
Every feature - auth, authz, validation |
| Error Handling | references/error-handling.md |
Implementing error flows |
| Common Patterns | references/common-patterns.md |
CRUD, forms, API flows |
| Backend Patterns | references/backend-patterns.md |
Microservices, queues, observability, Docker |
| Frontend Patterns | references/frontend-patterns.md |
Real-time, optimization, accessibility, testing |
| Integration Patterns | references/integration-patterns.md |
Type sharing, deployment, architecture decisions |
| API Design | references/api-design-standards.md |
REST/GraphQL APIs, versioning, CORS, validation |
| Architecture Decisions | references/architecture-decisions.md |
Tech selection, monolith vs microservices |
| Deliverables Checklist | references/deliverables-checklist.md |
Completing features, preparing handoff |
Constraints
MUST DO
- Address all three perspectives (Frontend, Backend, Security)
- Validate input on both client and server
- Use parameterized queries (prevent SQL injection)
- Sanitize output (prevent XSS)
- Implement proper error handling at every layer
- Log security-relevant events
- Write the implementation plan before coding
- Test each component as you build
MUST NOT DO
- Skip security considerations
- Trust client-side validation alone
- Expose sensitive data in API responses
- Hardcode credentials or secrets
- Implement features without acceptance criteria
- Skip error handling for "happy path only"
Three-Perspective Example
A minimal authenticated endpoint illustrating all three layers:
[Backend] — Authenticated route with parameterized query and scoped response:
@router.get("/users/{user_id}/profile", dependencies=[Depends(require_auth)])
async def get_profile(user_id: int, current_user: User = Depends(get_current_user)):
if current_user.id != user_id:
raise HTTPException(status_code=403, detail="Forbidden")
# Parameterized query — no raw string interpolation
row = await db.fetchone("SELECT id, name, email FROM users WHERE id = ?", (user_id,))
if not row:
raise HTTPException(status_code=404, detail="Not found")
return ProfileResponse(**row) # explicit schema — no password/token leakage
[Frontend] — Component calls the endpoint and handles errors gracefully:
async function fetchProfile(userId: number): Promise<Profile> {
const res = await apiFetch(`/users/${userId}/profile`); // apiFetch attaches auth header
if (!res.ok) throw new Error(await res.text());
return res.json();
}
// Client-side input guard (never the only guard)
if (!Number.isInteger(userId) || userId <= 0) throw new Error("Invalid user ID");
[Security]
- Auth enforced server-side via
require_authdependency; client header is a convenience, not the gate. - Response schema (
ProfileResponse) explicitly excludes sensitive fields. - 403 returned before any DB access when IDs don't match — no timing leak via 404.
Output Templates
When implementing features, provide:
- Technical design document (if non-trivial)
- Backend code (models, schemas, endpoints)
- Frontend code (components, hooks, API calls)
- Brief security notes
Maintained by @jeffallan, Principal Consultant at Synergetic Solutions
よくある質問
どのセキュリティの確認を行いますか?
各機能について、認証、認可、入力の検証、出力のエンコード、パラメーター化されたクエリを確認します。
設計の文書を書きますか?
はい。コードを書く前に、アプローチを設計ファイルに文書にします。
その後は誰に引き継ぎますか?
品質チェックのためにテストの役割に、デプロイのためにDevOpsの役割に引き継ぐよう述べています。
詳細
作者による元の説明
Builds security-focused full-stack web applications by implementing integrated frontend and backend components with layered security at every level. Covers the complete stack from database to UI, enforcing auth, input validation, output encoding, and parameterized queries across all layers. Use when implementing features across frontend and backend, building REST APIs with corresponding UI, connecting frontend components to backend endpoints, creating end-to-end data flows from database to UI, or implementing CRUD operations with UI forms. Distinct from frontend-only, backend-only, or API-only
repo: Jeffallan/claude-skills
人気
- GitHubのスター
- 12k
- ランキング
- #11426
- ライセンス
- MIT
- 更新日
- 2026/10/30
コメント
- …
このリポジトリの他のスキル
angular-architect
12kエージェントが、スタンドアロンコンポーネント、遅延読み込みのルーティング、NgRxの状態管理、RxJSのパターン、性能の調整を使ったAngular 17以降のアプリを作るのを支援します。
api-designer
12kエージェントが、RESTまたはGraphQLのAPIを設計し、OpenAPI 3.1の仕様を書くのを支援します。リソース、ページネーション、エラーの形式、バージョン管理のルールを含みます。
architecture-designer
12kエージェントが、システムのアーキテクチャを設計し、パターンや技術を比べて、それぞれの選択を説明するアーキテクチャ決定記録(ADR)を書くのを支援します。
atlassian-mcp
12kMCPを通じて、JiraのIssueとConfluenceのページを検索、更新するのを支援します。JQLとCQLのクエリ、スプリント、ドキュメントの同期を含みます。
似ているスキル
reverse-engineer-anything
422kREAツールを使って、出荷済みのアプリやパッケージの中身を調べ、機能の説明、版の比較、再構築の手順をエージェントが支援します。
1password
394k1Password CLIをセットアップし、サインインして、秘密情報の値を会話に表示せずに読み取ったり注入したりするようエージェントを支援します。
healthcheck
394kOpenClawを動かすコンピューターやサーバーを、SSH、ファイアウォール、更新、バックアップなどのセキュリティリスクについて監査し、安全な修正案を提案するようエージェントを支援します。