tfy-deploy-skills / rules
Cursor rule1 starsChanged 8 months agoMITView on GitHub
Security rules for TrueFoundry deployments
- Reads credentials
Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.
Of the Cursor rule files we read, the 1,533 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository26 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/deploy.mdcCursor rule
- .cursor/rules/workflow.mdcCursor rule
- truefoundry-access-controlSkill
- truefoundry-access-tokensSkill
- truefoundry-applicationsSkill
- truefoundry-deploySkill
- truefoundry-docsSkill
- truefoundry-gitopsSkill
- truefoundry-helmSkill
- truefoundry-jobsSkill
- truefoundry-llm-deploySkill
- truefoundry-logsSkill
- truefoundry-ml-reposSkill
- truefoundry-monitorSkill
- truefoundry-notebooksSkill
- truefoundry-onboardingSkill
- truefoundry-secretsSkill
- truefoundry-service-testSkill
- truefoundry-ssh-serverSkill
- truefoundry-statusSkill
- truefoundry-tracingSkill
- truefoundry-volumesSkill
- truefoundry-workflowsSkill
- truefoundry-workspacesSkill
The file
Show its rules and text
We split this security.mdc into the rules it gives an agent
15 rules. About 0 are common, 9 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 12
NEVER delete any TrueFoundry resource via API or CLI.
- Distinctive: line 14
If a user asks to delete something, respond with:
- Distinctive: line 21
NEVER put raw credentials, API keys, passwords, or tokens in manifest YAML files
- Distinctive: line 22
NEVER log or echo secret values in shell commands
- Very specific: line 23
NEVER commit .env files or files containing credentials
- Very specific: line 24
Always use tfy-secret://tenant:group:key references for sensitive values
- Distinctive: line 25
Create secrets via the TrueFoundry secrets API before referencing them in manifests
- Very specific: line 29
Verify TFY_API_KEY is set before making API calls, but never print its value
- Very specific: line 30
Use ${TFY_API_KEY:+(set)} pattern to confirm presence without exposing the value
- Distinctive: line 31
Never pass API keys as CLI arguments (they appear in process listings)
- Distinctive: line 35
NEVER auto-select a workspace, even if only one exists
- Distinctive: line 36
Always list available workspaces and require explicit user confirmation
- Very specific: line 41
Always set TFY_HOST before running tfy CLI commands
- Very specific: line 42
Never run tfy apply with build_source.type: local — use tfy deploy instead
- Distinctive: line 43
Never claim a deployment succeeded without verifying terminal state
≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
---
description: Security rules for TrueFoundry deployments
alwaysApply: true
---
# TrueFoundry Security Rules
These rules ALWAYS apply, regardless of context. They are non-negotiable safety measures.
## Deletion Protection
NEVER delete any TrueFoundry resource via API or CLI. This includes deployments, services, applications, workspaces, volumes, secrets, and any other resource.
If a user asks to delete something, respond with:
> To delete [resource], go to your TrueFoundry dashboard at `$TFY_BASE_URL`, navigate to [specific path], and delete it from the UI.
This prevents accidental deletions through automation.
## Secret Management
- NEVER put raw credentials, API keys, passwords, or tokens in manifest YAML files
- NEVER log or echo secret values in shell commands
- NEVER commit `.env` files or files containing credentials
- Always use `tfy-secret://tenant:group:key` references for sensitive values
- Create secrets via the TrueFoundry secrets API before referencing them in manifests
## Credential Handling
- Verify `TFY_API_KEY` is set before making API calls, but never print its value
- Use `${TFY_API_KEY:+(set)}` pattern to confirm presence without exposing the value
- Never pass API keys as CLI arguments (they appear in process listings)
## Workspace Safety
- NEVER auto-select a workspace, even if only one exists
- Always list available workspaces and require explicit user confirmation
- This prevents accidental deployments to production environments
## CLI Safety
- Always set `TFY_HOST` before running tfy CLI commands
- Never run `tfy apply` with `build_source.type: local` — use `tfy deploy` instead
- Never claim a deployment succeeded without verifying terminal state
- Pin CLI versions to avoid unexpected behavior from updates
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

