Secrets-And-Environment-Safety

Secrets-And-Environment-Safety is a cursor rule for Cursor from Fullive-AI/Anima. It costs 279 tokens per session, scanned A, original, Apache-2.0.

A set of rules for handling secrets and operational configuration safely. Secrets include passwords, API keys, tokens, and other credentials used by software.

In plain words
What is it for?
Protecting environment files, using placeholders in examples, avoiding secret values in logs and outputs, and reviewing changes to authentication, databases, billing, and deployment.
Why use it?
It reduces the chance of exposing credentials, placing them in source code, or changing sensitive deployment settings carelessly.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Protecting environment files, using placeholders in examples, avoiding secret values in logs and outputs, and reviewing changes to authentication, databases, billing, and deployment.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/fullive-ai/anima/secrets-and-environment-safety
About the project

Anima is an open-source local-network runtime that gives household hardware an AI layer for sensing environments, remembering preferences, planning actions, and controlling devices through adapters. It is intended for intelligent devices such as lights, air conditioners, humidifiers, air purifiers, and speakers, with a dashboard, REST API, and CLI for control and extension. The catalogue entries are skills, rules, and instructions for working with Anima.

Fullive-AI/Anima · 1,049 stars · on GitHub

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.

Clone the repo
git clone --depth 1 https://github.com/Fullive-AI/Anima

Made for: Cursor.

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 Secrets-And-Environment-Safety

README.md
[![agentmods](https://agentmods.dev/badge/rules/fullive-ai/anima/secrets-and-environment-safety.svg)](https://agentmods.dev/rules/fullive-ai/anima/secrets-and-environment-safety)
Your own site
<a href="https://agentmods.dev/rules/fullive-ai/anima/secrets-and-environment-safety"><img src="https://agentmods.dev/badge/rules/fullive-ai/anima/secrets-and-environment-safety.svg" alt="Measured on agentmods" height="20"></a>
Per session 279 This file is loaded in full into every session.
When invoked 279 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00279 $0.00279
Opus 5 $0.00139 $0.00139
Sonnet 5 $0.00056 $0.00056
Haiku 4.5 $0.00028 $0.00028

Measured 8d ago against content hash 533b44513905, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

Secrets-And-Environment-Safety 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 8d 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.

.cursor/rules/Secrets-And-Environment-Safety.mdc · 51 lines

What it actually says

Handle secrets, environment variables, and operational configuration with extreme care.

Never do these things

  • never reveal secrets, tokens, API keys, passwords, private certificates, or credentials in output
  • never hardcode secrets into source files
  • never copy secret values into examples, tests, or docs
  • never overwrite existing secret files casually
  • never log sensitive values unless explicitly safe and redacted

Environment safety rules

  • treat .env and similar files as sensitive
  • prefer .env.example or documented placeholders for required configuration
  • when adding a new environment variable, also update the example or docs where appropriate
  • do not assume production values
  • do not silently change operational defaults with risky impact

Operational safety

Be cautious with changes affecting:

  • authentication
  • authorization
  • network endpoints
  • external service credentials
  • deployment settings
  • broker settings
  • database connection settings
  • billing or payment config
  • production runtime behavior

If a task requires secret-dependent work

  • use placeholders when possible
  • explain clearly what external value is required
  • continue all non-blocked work first
  • only pause when the missing secret or permission truly prevents further progress

Output discipline

When discussing config changes:

  • reference variable names, not secret values
  • use sanitized examples
  • preserve user privacy and environment safety
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. 8d ago First seen · 51 lines · 279 tokens per session scan A 533b44513905

Subscribe to this mod's changes

Secrets-And-Environment-Safety is a cursor rule published in the GitHub repository Fullive-AI/Anima (1,049 stars, last pushed 18d ago), licensed Apache-2.0. It adds 279 tokens to every session, about $0.0014 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-08-30.