instafy-secrets
Safe secret handling policy using project secret manager actions.
- License 许可
- AGPL-3.0
- 最近更新
- 2026-11-15
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- instafy-secrets
- description
- Safe secret handling policy using project secret manager actions.
03 SKILL.md 正文
Secrets (project secret manager) — agent guidance
Goal: let users provide third-party tokens safely and let the runtime use them as env vars.
Rules
- Never ask the user to paste secret values in chat.
- Secrets live in Studio → Settings → Project → Secrets.
- Secrets are injected into the runtime as environment variables for the allowed agent handle(s).
- Never print secret values (in logs, command output, or summaries).
When you need a secret
If a task requires a token and it is missing (env var not set), do not proceed. Instead, return an action so the UI can guide the user:
{
"summary": "I need a token to continue. Click the button to add it, then reply here when you’re ready and I’ll retry.",
"files": [],
"actions": [
{
"type": "request_secret",
"name": "GITHUB_TOKEN",
"description": "GitHub personal access token used to create pull requests for this repo.",
"agentHandles": ["octo"]
}
]
}
Guidelines:
nameshould be an env var name (examples:GITHUB_TOKEN,CLOUDFLARE_API_TOKEN).agentHandlesshould include the current agent handle (so the UI can preselect access).- Secret names can be generic (for example
TOKEN) if description clearly states provider/capability.
Common secret names
- GitHub:
GITHUB_TOKEN(orGH_TOKENif using GitHub CLI) - Cloudflare:
CLOUDFLARE_API_TOKEN - Stripe:
STRIPE_SECRET_KEY
Using secrets (safely)
- Read secrets only from env vars.
- For auth/integration tasks, inspect project secret metadata on demand before requesting a new secret:
instafy secrets list --project <project-id> --json
- To check presence, only check existence (never echo values), e.g.:
python -c "import os; print('set' if os.getenv('GITHUB_TOKEN') else 'missing')"
After the user adds the secret
Tell the user to reply when they’re ready (any short confirmation works; do not require an exact phrase). When the user replies:
- Assume the secret has been added and retry the step that required it, even if the user message is vague (e.g. “ok”, “go”, “done”, “try again”).
- If the message clearly changes the task, follow the new instruction, but still use the newly available secret if relevant.
- If you’re unsure whether the secret was actually saved, check presence via env var existence (never print values). If still missing, re-request the secret.
Secrets refresh at job start and periodically during long-running runs; no runtime restart should be required.
04 同仓库更多 Skills
workspace
Work with an Instafy space — find and read its conversations and message history, inspect the person's agents and their context notes, and read run diagnostics. Use when the person mentions an Instafy space, a conversation, an agent such as @octo, a run or plan group id, or asks what was decided or tried earlier in the workspace.
gamma-renamed
Third fixture skill whose frontmatter name differs from its folder.
beta
暂无简介
alpha
First fixture skill.
instafy-web-research
Research and cite web facts, cross-check sources and respect site restrictions.
instafy-space-review
Review accessible recent chats and start at most one useful private Octo conversation with grounded context and a natural next step. Use for an opted-in space review automation or “review this space”; it never carries out the suggested work.