zero-trust-architecture — скилл для Claude Code: как установить
Скилл помогает внедрить модель нулевого доверия: проверку каждого запроса и микросегментацию сервисов. Пригодится при разработке облачных приложений.
npx skills add aj-geddes/useful-ai-prompts --skill zero-trust-architecture -a claude-codeЧто делает zero-trust-architecture
Скилл даёт шаблоны и правила для перехода на модель Zero Trust по принципу непрерывной проверки. Внутри есть пример шлюза на Node.js с валидацией токенов JWT по алгоритму RS256 и отслеживанием отзыва через идентификатор jti. Архитектурные руководства в каталоге references/ описывают настройку Service Mesh для микросегментации и движок политик на Python.
Для запуска шлюза понадобятся адрес провайдера аутентификации в IDENTITY_PROVIDER_URL и публичный ключ в JWT_PUBLIC_KEY. Без рабочей проверки отзыва токенов шлюз не сможет вовремя пресекать доступ скомпрометированных сессий.
Модель требует шифрования всех каналов связи и явного отказа от доверия к сетевому расположению. Статические учётные данные и неявное доверие здесь исключены.
Какие задачи решает
- внедрить шлюз аутентификации на базе JWT
- настроить микросегментацию трафика через Service Mesh
- написать движок политик доступа на Python
- исключить доверие к расположению узлов в локальной сети
Примеры запросов агенту
- Спроектируй шлюз Zero Trust на Node.js с валидацией токенов RS256.
- Покажи схему микросегментации сервисов для Service Mesh.
- Напиши проверку отзыва токенов по jti для zero-trust-gateway.js.
Как установить zero-trust-architecture
1Через Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill zero-trust-architecture -a claude-code2Вручную: положить файлы
~/.claude/skills/zero-trust-architecture/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/zero-trust-architecture/
1Через Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill zero-trust-architecture -a codex2Вручную: положить файлы
.agents/skills/zero-trust-architecture/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill zero-trust-architecture -a cursor2Вручную: положить файлы
.cursor/skills/zero-trust-architecture/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install aj-geddes/useful-ai-prompts zero-trust-architecture2Вручную: положить файлы
.github/skills/zero-trust-architecture/SKILL.md1Через Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill zero-trust-architecture -a gemini-cli2Командой платформы
gemini skills install https://github.com/aj-geddes/useful-ai-prompts --path skills/zero-trust-architectureВручную: положить файлы
.devin/skills/zero-trust-architecture/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill zero-trust-architecture -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о zero-trust-architecture
Как установить zero-trust-architecture в Claude Code?
Выполните команду npx skills add aj-geddes/useful-ai-prompts --skill zero-trust-architecture -a claude-code в терминале.
Что делает скилл zero-trust-architecture?
Он предоставляет агенту готовые архитектурные шаблоны и правила безопасности по принципу «никому не доверяй, всегда проверяй». Скилл ориентирован на облачные системы и микросервисы.
Какие руководства входят в состав скилла?
В папке references/ лежат инструкции по созданию шлюза Zero Trust Gateway, настройке микросегментации в Service Mesh и разработке движка политик на Python.
Исходный текст
SKILL.md · MIT
---
name: zero-trust-architecture
description: >
Implement Zero Trust security model with identity verification,
microsegmentation, least privilege access, and continuous monitoring. Use when
building secure cloud-native applications.
---
# Zero Trust Architecture
## Table of Contents
- [Overview](#overview)
- [When to Use](#when-to-use)
- [Quick Start](#quick-start)
- [Reference Guides](#reference-guides)
- [Best Practices](#best-practices)
## Overview
Implement comprehensive Zero Trust security architecture based on "never trust, always verify" principle with identity-centric security, microsegmentation, and continuous verification.
## When to Use
- Cloud-native applications
- Microservices architecture
- Remote workforce security
- API security
- Multi-cloud deployments
- Legacy modernization
- Compliance requirements
## Quick Start
Minimal working example:
```javascript
// zero-trust-gateway.js
const jwt = require("jsonwebtoken");
const axios = require("axios");
class ZeroTrustGateway {
constructor() {
this.identityProvider = process.env.IDENTITY_PROVIDER_URL;
this.deviceRegistry = new Map();
this.sessionContext = new Map();
}
/**
* Verify identity - Who are you?
*/
async verifyIdentity(token) {
try {
// Verify JWT token
const decoded = jwt.verify(token, process.env.JWT_PUBLIC_KEY, {
algorithms: ["RS256"],
});
// Check token hasn't been revoked
const revoked = await this.checkTokenRevocation(decoded.jti);
if (revoked) {
throw new Error("Token has been revoked");
// ... (see reference guides for full implementation)
```
## Reference Guides
Detailed implementations in the `references/` directory:
| Guide | Contents |
|---|---|
| [Zero Trust Gateway](references/zero-trust-gateway.md) | Zero Trust Gateway |
| [Service Mesh - Microsegmentation](references/service-mesh-microsegmentation.md) | Service Mesh - Microsegmentation |
| [Python Zero Trust Policy Engine](references/python-zero-trust-policy-engine.md) | Python Zero Trust Policy Engine |
## Best Practices
### ✅ DO
- Verify every request
- Implement MFA everywhere
- Use microsegmentation
- Monitor continuously
- Encrypt all communications
- Implement least privilege
- Log all access
- Regular audits
### ❌ DON'T
- Trust network location
- Use implicit trust
- Skip device verification
- Allow lateral movement
- Use static credentials
© aj-geddes · MIT · aj-geddes/useful-ai-prompts