security-architect
Security Architect Skill
- License 许可
- MIT
- 所属仓库
- agisota/old-one
- 最近更新
- 2026-07-04
- Stars
- ★ 3
- Forks
- 1
01 前言 Front Matter
- name
- security-architect
- triggers
- [ "security architect" ]
- description
- Security Architect Skill
03 SKILL.md 正文
The Four Phases
You MUST complete each phase before proceeding to the next.
Phase 1: Authentication Architecture (The Handshake)
BEFORE writing a single line of auth code:
-
Select the Flow
- Mobile/SPA: MUST use Authorization Code Flow with PKCE (Proof Key for Code Exchange).
- Backend: Authorization Code Flow.
- Implicit Flow: FORBIDDEN. Never use it. It returns tokens in the URL.
- Device Flow: Only for input-constrained devices (TVs/IoT).
-
Scope Strategy (Least Privilege)
- Define exactly which permissions are needed from YouTube (
youtube.readonly) vs Twitch (chat:read). - Incremental Auth: Do not ask for all scopes at signup. Ask for
youtube.uploadonly when the user actually clicks "Upload." - Justification: Be ready to explain to the user why you need this access.
- Define exactly which permissions are needed from YouTube (
-
The "No-Credential" Rule
- Principle: We never see, touch, or store the user's password.
- Identity Provider (IdP): Delegate login to the provider (Google/Twitch).
- Redirect URIs: strict allow-listing. No wildcards (
*).
04 同仓库更多 Skills
zoom-out
Tell the agent to zoom out and give broader context or a higher-level perspective. Use when you're unfamiliar with a section of code or need to understand how it fits into the bigger picture.
zeroize-audit
Detects missing zeroization of sensitive data in source code and identifies zeroization removed by compiler optimizations, with assembly-level analysis, and control-flow verification. Use for auditing C/C++/Rust code handling secrets, keys, passwords, or other sensitive data.
yeet
Use only when the user explicitly asks to stage, commit, push, and open a GitHub pull request in one flow using the GitHub CLI (`gh`).
yara-rule-authoring
Guides authoring of high-quality YARA-X detection rules for malware identification. Use when writing, reviewing, or optimizing YARA rules. Covers naming conventions, string selection, performance optimization, migration from legacy YARA, and false positive reduction. Triggers on: YARA, YARA-X, malware detection, threat hunting, IOC, signature, crx module, dex module.
x-twitter-growth
X/Twitter growth engine for building audience, crafting viral content, and analyzing engagement. Use when the user wants to grow on X/Twitter, write tweets or threads, analyze their X profile, research competitors on X, plan a posting strategy, or optimize engagement. Complements social-content (generic multi-platform) with X-specific depth: algorithm mechanics, thread engineering, reply strategy, profile optimization, and competitive intelligence via web search.
x-api
X/Twitter API integration for posting tweets, threads, reading timelines, search, and analytics. Covers OAuth auth patterns, rate limits, and platform-native content posting. Use when the user wants to interact with X programmatically.