dev-security-patterns SKILL.md skillA
dev-security-patterns from joaoguirunas/team-os is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add joaoguirunas/team-os/dev-security-patterns@v1.2Pins v1.2 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- joaoguirunas/team-os
- Path
.claude/skills/dev-security-patterns/SKILL.md- Versions recorded
- 3
- Latest version
- v1.2, committed Oct 7, 2026
- First version recorded
- Apr 23, 2026
- Size
- 11,471 bytes
- Repository stars
- 5
- License
- MIT
Padrões de segurança para software complexo — autenticação, autorização, RLS, OWASP top 10, validação de input, secrets management e a varredura das armadilhas de código gerado por IA (segredo no cliente, RLS aberta, auth por user_metadata, prompt injection).
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Security Patterns — Software Complexo
## JWT — Autenticação
```typescript
// Geração
const accessToken = jwt.sign(
{ userId: user.id, role: user.role },
process.env.JWT_SECRET!,
{ expiresIn: '15m' } // curto
)
const refreshToken = jwt.sign(
{ userId: user.id },
process.env.JWT_REFRESH_SECRET!,
{ expiresIn: '7d' }
)
// Validação em middleware
const verifyToken = (req, res, next) => {
const token = req.headers.authorization?.split(' ')[1]
if (!token) return res.status(401).json({ error: { code: 'UNAUTHORIZED', requestId: req.requestId } })
try {
req.user = jwt.verify(token, process.env.JWT_SECRET!)
next()
} catch {
return res.status(401).json({ error: { code: 'UNAUTHORIZED', requestId: req.requestId } })
}
}
```
**Regras:** Access token 15min. Refresh token 7 dias com rotação. Nunca localStorage — usar httpOnly cookie. Secret mínimo 256 bits.
## Autorização — RBAC
```typescript
const requireRole = (...roles: string[]) => (req, res, next) => {
if (!roles.includes(req.user.role)) {
return res.status(403).json({ error: { code: 'FORBIDDEN', requestId: req.requestId } })
}
next()
}
// Uso
…Read the whole file at its exact version.
How to install
mdr add joaoguirunas/team-os/dev-security-patterns@sha256:35c03207436ec826The line at the top of this page pins the label v1.2, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_z5ekqq62ea6yxjio)
3 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 3 versions of this file, between Apr 23, 2026 and Oct 7, 2026, about one every 83 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| v1.2 latest | 2026-10-07 | 6d31566 | 11,471 B | A | view · diff |
| v1.1 | 2026-09-26 | 8a9bf22 | 5,050 B | A | view · diff |
| v1.1 | 2026-04-23 | b70017d | 5,048 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (11471 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
joaoguirunas/team-os · 5 stars · license MIT · pushed 2026-10-14 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_z5ekqq62ea6yxjio GET https://markdownregistry.com/api/v1/resolve?ref=joaoguirunas/team-os/dev-security-patterns GET https://markdownregistry.com/api/v1/blob/35c03207436ec8267fce23ff3f8290e0c141c6878098c036f86a7946797ca2d8
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.