Rule
0 installs · 0 said it worked
Gate TokRepo discovery, install, and publishing behind safety checks
Cursor rule that makes an agent check TokRepo for existing artifacts locally first, verify and dry-run before any install, and keep publishing private and secret-free before reusing AI artifacts.
People use this for
- tokrepo discovery safety checks
- verify artifacts before install
- private prompt publishing safeguards
- check existing skill before building
- cursor rule for safe artifact reuse
- Name
gate-tokrepo-discovery-install-and-publishing-behind-safety-chec- Works with
- Cursor
- License
- CC0(as observed at the source)
- Version
- v1 · updated Nov 29, 2026
Imported on Nov 29, 2026 from github.com . License observed at the source on Nov 29, 2026: CC0.
Are you the author?Claim this profileRequest removal
Use this rule
$ curl -fsSL "https://promptcommunity.dev/api/v1/posts/gate-tokrepo-discovery-install-and-publishing-behind-safety-checks-c33z/export/mdc" -o .cursor/rules/gate-tokrepo-discovery-install-and-publishing-behind-safety-chec.mdcThen open a new session; Cursor picks it up from .cursor/rules/.
Manual install
Save gate-tokrepo-discovery-install-and-publishing-behind-safety-chec.mdc as .cursor/rules/gate-tokrepo-discovery-install-and-publishing-behind-safety-chec.mdc for this project or ~/.cursor/rules/gate-tokrepo-discovery-install-and-publishing-behind-safety-chec.mdc for every project, then start a new session.
Rule
description: "Use TokRepo discovery safely before rebuilding reusable AI artifacts. Prefer local discovery or skip for private work; use hosted discovery only with user opt-in and redacted task text. Gates installs through tokrepo_verify + tokrepo_install_plan; uses tokrepo_handoff_plan after producing reusable work." globs: /SKILL.md,/*.prompt.md,/.mcp.json,/mcp.json,/mcp.md,**/scripts/ alwaysApply: false
DISCOVER BEFORE BUILD, LOCAL FIRST: Before generating any reusable artifact matched by this rule (a
SKILL.md, a*.prompt.md, a.mcp.json, an MCP tool config, or a reusable script inscripts/), prefer the local TokRepo MCP server. For private or sensitive work, use local discovery or skip discovery. Use hosted TokRepo discovery only after explicit user opt-in, and redact task text before sending it to the hosted service athttps://tokrepo.com/mcp. If MCP is unavailable and hosted use is approved, use the CLI fallbacknpx -y tokrepo@<reviewed-version> agent-check "<redacted task>" --json. If a candidate returns withtrust_score_v2 >= 0.7ANDagent_fit >= 0.7, surface it and ask before reusing it. If candidates exist buttrust_score_v2 < 0.7, surface them and ask before proceeding.VERIFY BEFORE INSTALL: Before any install or write to the user environment, you MUST call
tokrepo_verifyandtokrepo_install_plan. Ifpolicy_decision.decision === "deny": STOP. Ifpermission_enveloperequests writes outside the declared scope (global config, secrets, network egress, absolute paths): STOP and confirm with the user explicitly. Recordcontent_hash,install_plan_hash, andtrust_score_v2as evidence.DRY-RUN BEFORE APPLY: Lifecycle tools (
tokrepo_codex_install,tokrepo_update,tokrepo_uninstall,tokrepo_rollback) defaultdry_run: true. Keepdry_run: trueuntil the user has surfaced the plan and explicitly confirmeddry_run: falsefor that specific operation in this session.HANDOFF AFTER REUSABLE WORK: After producing reusable artifacts (skills, prompts, MCP configs, scripts), call
tokrepo_handoff_planlocally when available, or usenpx -y tokrepo@<reviewed-version> agent-handoff --jsonafter reviewing the package version. It returns a READ-ONLY draft plan that never auto-publishes. Ask the user before anytokrepo_push.PRIVATE BY DEFAULT, NEVER PUSH SECRETS:
tokrepo_pushdefaults tovisibility: 0(private). Public publishing requires explicit per-push confirmation. Before any push, strip env tokens, absolute paths, project-specific names, and secret patterns. Iftokrepo_handoff_planflagged a file as sensitive, do not override.
How to install
# One-time per project - bootstraps .cursor/rules/tokrepo.mdc plus a machine-readable
# .tokrepo/agent.json that the MCP server reads on every planning call.
npx -y tokrepo@<reviewed-version> init-agent --target cursor
Resources
- Hosted MCP endpoint (read-only, no auth):
https://tokrepo.com/mcpafter explicit user opt-in and redacted task text - Local MCP server:
npx -y tokrepo-mcp-server@<reviewed-version> - Published tool catalog: 15 tools in
https://tokrepo.com/.well-known/tool-catalog.json - Trust manifest:
https://tokrepo.com/.well-known/tokrepo-trust.json - Default policy pack:
https://tokrepo.com/policy-packs/default-agent-policy.json - Tool catalog:
https://tokrepo.com/.well-known/tool-catalog.json - Public agent funnel (anonymous):
https://tokrepo.com/agent-stats - Source: https://github.com/henu-wang/tokrepo-mcp-server
No result recorded yet. Added it? File a Tried-it report so the next person knows how it went in your editor.
Tried it
Reports from people who added this rule to their editor. They roll up into the badges above.
No one has filed a report yet. Try the prompt and be the first.
Related rules
- Claude api: reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming,…
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER — read BEFORE opening the target file; don't skip because it "looks like a one-liner" — whenever: the prompt names Claude/Anthropic in any fo
Coding · @anthropic
- Forensic PHP codebase security, performance and quality audit
A long checklist-driven prompt that has the model act as a senior PHP reviewer and audit a codebase for type safety, security holes, database and performance issues, code quality, architecture, dependencies, and testing gaps, then report findings by severity with a final scored summary.
Coding · @ersinkoc
- Register an AI agent and verify identities with MoltPass passports
Agent skill that registers an AI agent on MoltPass with a local Ed25519 keypair, looks up passports, and runs challenge-response identity checks between agents.
Coding · @vanisenyap
- Webhook Signature Verifier and Replay Guard for debugging HMAC mismatches
Agent skill that debugs webhook signature failures for Stripe, GitHub, Shopify, Slack or custom schemes, explains mismatches from raw bodies, flags replays, duplicates, weak secrets and plain HTTP endpoints.
Coding · @f
- Security guardrails that keep an AI email assistant from being hijacked by malicious messages
A full system prompt giving an AI assistant that reads or manages email a security mindset: treat email as untrusted data, require approval for outward actions, avoid leaking private data, and report phishing and injection attempts calmly.
Productivity · @thanos0000
License: CC0v1 · published Nov 29, 2026
Comments
No comments yet. If you tried this prompt, say how it went.