architecting-security

architecting-security is a skill for Claude Code from telagod/code-abyss. It costs 104 tokens per session (1,335 once invoked), scanned A, original, MIT.

A security-architecture guide for modeling threats and designing identity, access, privacy, and compliance controls. It covers approaches such as STRIDE, zero trust, single sign-on, multi-factor authentication, and GDPR-related privacy work.

In plain words
What is it for?
Threat-model new systems, design IAM or SSO architectures, plan MFA and privileged access, map controls to SOC 2, PCI, HIPAA, or GDPR, and document evidence.
Why use it?
It helps identify security risks before implementation and connect safeguards to threats and evidence.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Part of the code-abyss plugin — 39 skills shipped together

Good fit Threat-model new systems, design IAM or SSO architectures, plan MFA and privileged access, map controls to SOC 2, PCI, HIPAA, or GDPR, and document evidence.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/telagod/code-abyss/architecting-security
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add telagod/code-abyss --skill architecting-security
Clone the repo
git clone --depth 1 https://github.com/telagod/code-abyss

Made for: Claude Code.

Or install code-abyss, the plugin that ships this one along with the rest of its 39 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for architecting-security

README.md
[![agentmods](https://agentmods.dev/badge/skills/telagod/code-abyss/architecting-security/github.svg)](https://agentmods.dev/skills/telagod/code-abyss/architecting-security)
Your own site
<a href="https://agentmods.dev/skills/telagod/code-abyss/architecting-security"><img src="https://agentmods.dev/badge/skills/telagod/code-abyss/architecting-security/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for architecting-security

Your own site · 80×15
<a href="https://agentmods.dev/skills/telagod/code-abyss/architecting-security"><img src="https://agentmods.dev/badge/skills/telagod/code-abyss/architecting-security.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 104 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,335 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00104 $0.01335
Opus 5.5 $0.00042 $0.00534
Sonnet 5.5 $0.00021 $0.00267
Haiku 4.5 $0.00010 $0.00134

Measured 1mo ago against content hash 9617a7759728, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

architecting-security scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/architecting-security/SKILL.md · 72 lines

How it starts

The opening of the file, as written. The whole thing — 72 lines — stays where its author put it; the contents beside it link to each section on GitHub.

安全架构与治理

判断先于执行:决定「是否做 / 选什么 / 如何取舍」(栈、方案、架构、权衡)前,先读领域判断内核 skills/_kernel/security/SKILL.md——它管 judgment,本秘典管 execution;冲突时以内核判断为准。

架构是预防层,不是补丁。先建模再写代码,先定边界再开 API。控制必须可证据化。

路由

意图 秘典 核心
威胁建模 threat-modeling STRIDE / PASTA / LINDDUN / DFD / Attack Tree
身份与零信任 identity-and-zero-trust IAM / SSO / MFA / Kerberos / PAM / Conditional Access
合规与证据 compliance-and-evidence SOC2 / PCI / HIPAA / GDPR / ISO27001 / DLP / 隐私工程

何时使用

场景 用 不用
新系统设计 / 新攻击面引入 ✅ STRIDE + DFD —
重大架构变更(鉴权、数据流、信任边界) ✅ 重新建模 —
引入 PII / PHI / PCI 数据 ✅ LINDDUN + 合规映射 —
上线前安全门禁 / 客户安全问卷 ✅ 控制矩阵 + 证据 —
已有架构无变更 ❌ 用现有控制即可
仅 bug 修复 / 样式调整 ❌ 走 analyzing-security
渗透实施层面 ❌ 用 securing-systems

执行链

威胁建模 (STRIDE/PASTA/LINDDUN)
  → 控制设计 (preventive / detective / responsive 三层)
  → 实现 (代码、IaC、policy-as-code)
  → 验证 (渗透 / 红队 / 控制测试)
  → 证据留痕 (日志 / 审计 / 合规映射)

每环必须可回答「这控制对应哪条威胁?这威胁缓解到什么残留水平?谁验收?」

决策矩阵

决策点 选项 A 选项 B 判据
鉴权协议 SAML 2.0 OIDC 企业内部 SSO → SAML;移动/SPA/API → OIDC
MFA 强度 TOTP / Push FIDO2 / WebAuthn 高价值账号、抗钓鱼 → FIDO2 强制
特权访问 Standing privilege JIT + Approval 生产/敏感 → JIT;运维便利 → Standing 必有补偿
合规起步 SOC 2 Type I Type II 客户问卷应付 → I;正式审计 → II(6-12月观察期)
数据脱敏 假名化(可逆) 匿名化(不可逆) 业务侧仍需关联 → 假名化 + KMS;统计/共享 → 匿名化
跨境传输 SCC BCR 偶发场景 → SCC;跨国集团内部 → BCR

与其他 skill 联动

Read the full file on GitHub · 72 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 72 lines · 104 tokens per session scan A 9617a7759728

Subscribe to this mod's changes

architecting-security is a skill published in the GitHub repository telagod/code-abyss (242 stars, last pushed 3mo ago), licensed MIT. It adds 104 tokens to every session and 1,335 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

codexkit-legal-due-diligence

Conduct structured legal due diligence for M&A, joint ventures, or investment transactions. Cover all 9 workstreams — Corporate, Contracts, IP, Litigation, Regulatory, Employment, Tax, Environmental, and Data Privacy. Produce a risk matrix with deal-breaker flags and closing conditions. Use when evaluating a target or…

hoavdc/CodexKit · 76 tokens

codexkit-policy-document-writer

Author structured policy documents and Standard Operating Procedures (SOPs) following ISO document control standards. Covers purpose, scope, roles, policy statements, procedures, compliance monitoring, and review schedules. Use when creating corporate policies, operational procedures, or governance documents.

hoavdc/CodexKit · 59 tokens

codexkit-audit-readiness-checker

Assess organizational readiness for financial audits (internal or external). Map assertions to account balances, check evidence completeness, score readiness using a Red/Amber/Green framework, and generate a remediation timeline. Aligned with SOX, IFRS, and GAAP audit standards. Use before scheduled audits or when…

hoavdc/CodexKit · 75 tokens

codexkit-procurement-rfp-writer

Write structured Requests for Proposal (RFP) or Requests for Quotation (RFQ) aligned with ISO 20400 sustainable procurement principles. Cover scope, technical requirements, evaluation methodology, and commercial terms. Use when sourcing vendors, services, or equipment.

hoavdc/CodexKit · 62 tokens

codexkit-contract-drafter

Draft commercial contracts from scratch by contract type — NDAs, service agreements, vendor contracts, employment agreements, and licensing deals. Follow a clause library approach with risk-balanced terms. Use when creating new contracts. Do not replace legal counsel sign-off on finalized agreements. For reviewing…

hoavdc/CodexKit · 71 tokens

codexkit-compliance-gap-review

Compare policies, procedures, onboarding files, or operating evidence against a named compliance framework such as AML/KYC, privacy, internal controls, or audit readiness. Use when a team needs a gap matrix, control checklist, remediation priorities, or evidence request list. Do not use when no target framework is…

hoavdc/CodexKit · 79 tokens