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.
npx agentmods add skills/smicolon/ai-kit/infisical-patternsnpx skills add smicolon/ai-kit --skill infisical-patternsgit clone --depth 1 https://github.com/smicolon/ai-kitWrote 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.
[](https://agentmods.dev/skills/smicolon/ai-kit/infisical-patterns)<a href="https://agentmods.dev/skills/smicolon/ai-kit/infisical-patterns"><img src="https://agentmods.dev/badge/skills/smicolon/ai-kit/infisical-patterns.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00054 | $0.02108 |
| Opus 5 | $0.00027 | $0.01054 |
| Sonnet 5 | $0.00011 | $0.00422 |
| Haiku 4.5 | $0.00005 | $0.00211 |
Grade A, and why
infisical-patterns 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 today.
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.
How it starts
The opening of the file, as written. The whole thing — 297 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Infisical Patterns
Core patterns for managing secrets with Infisical.
.infisical.json Convention
The .infisical.json file binds a project directory to an Infisical workspace:
{
"workspaceId": "abc123-def456-ghi789",
"defaultEnvironment": "dev",
"gitBranchToEnvironmentMapping": null
}
Rules:
- Commit
.infisical.jsonto git (it contains no secrets, just workspace binding) - Do NOT commit
.env,.env.local, or any file containing secret values
Secret Naming Convention
Use UPPER_SNAKE_CASE for all secret names:
# Correct
DATABASE_URL
REDIS_HOST
STRIPE_SECRET_KEY
AWS_ACCESS_KEY_ID
# Wrong
databaseUrl # camelCase
redis-host # kebab-case
stripe.secret.key # dotted
Folder Organization
Organize secrets by consumer/service so each folder maps directly to an infisical run --path= invocation and machine identity scope.
Pattern A: By Consumer/Service (Recommended)
Best for multi-service projects. Each service gets exactly the secrets it needs via --path.
/ (root) → Shared secrets (DATABASE_URL, REDIS_URL)
├── /backend → Backend-only (JWT_SECRET, INTERNAL_API_KEY, SENTRY_DSN)
├── /frontend → Frontend-only (NEXT_PUBLIC_API_URL, NEXT_PUBLIC_STRIPE_KEY)
├── /mobile → Mobile-only (PUSH_NOTIFICATION_KEY, DEEP_LINK_SECRET)
└── /ci → CI/CD-only (DEPLOY_KEY, DOCKER_TOKEN, CODECOV_TOKEN)
Why this works:
infisical run --path=/backendinjects root secrets +/backendsecrets — exactly what backend needs- Machine identities scoped to
/backendcan't read/cisecrets - Maps to team ownership and deployment targets
# Backend gets shared + backend-only secrets
infisical run --env=production --path=/backend -- node server.js
# Frontend gets shared + frontend-only secrets
infisical run --env=production --path=/frontend -- npm run build
# CI gets shared + CI-only secrets
infisical run --env=production --path=/ci -- ./deploy.sh
# Set a secret in a service folder
infisical secrets set JWT_SECRET=supersecret --env=production --path=/backend
# List secrets for a specific service
infisical secrets --env=production --path=/backend
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.
- today Changed · +23 lines de910ea3dfad
- yesterday First seen · 274 lines · 54 tokens per session scan A 24afd7164b2f
infisical-patterns is a skill published in the GitHub repository smicolon/ai-kit (6 stars, last pushed yesterday), licensed MIT. It adds 54 tokens to every session and 2,108 once invoked, about $0.0003 per session on Opus 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-09-03.
Other skills, from other repositories
add-resend
Add Resend (email) channel integration via Chat SDK.
add-macos-statusbar
Add a macOS menu bar status indicator for NanoClaw. Shows a bolt icon with a green/red dot indicating whether NanoClaw is running, with Start, Stop, and Restart controls. macOS only.
git-commit
Generate well-formatted git commit messages following conventional commit standards.
trend-analysis
基于多维度数据进行分级评估与趋势预测,通过设定差异化增长率计算预测值,并生成对比可视化图表,适用于绩效评估、目标设定等场景。.
excel-basic-statistics-and-routing
Skill "excel-basic-statistics-and-routing" from OpenSenseNova/SenseNova-Skills, covering skill steps, 保存区间提取与汇总结果 and 保存筛选与统计结果.
excel-conditional-filtering-optimization
根据多维数值条件筛选 Excel 数据并导出结果,支持大规模数据的自动性能优化处理。.