target

A command that chooses where business context is stored: across an organisation, within one project, or at both levels.

In plain words
What is it for?
Use it before saving business context when an organisation has multiple projects and different access roles.
Why use it?
It prevents shared information from being saved in the wrong place and checks whether the user has permission to write it.

Command

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.

agentmods
npx agentmods add commands/mixpanel/ai-plugins/target
Clone the repo
git clone --depth 1 https://github.com/mixpanel/ai-plugins
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 315 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.00315
Opus 5 $0.00000 $0.00158
Sonnet 5 $0.00000 $0.00063
Haiku 4.5 $0.00000 $0.00032

Measured 2d ago against content hash acc73959ac41, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

target 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 2d 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.

plugins/mixpanel/skills/prepare-ai-readiness/commands/target.md · 38 lines

What it actually says

Command: target

Change which level(s) the skill writes business context to: org-level, project-level, or both.

Session reads: org_id, org_name, project_id, project_name, caller_role Session writes: target_level


Prompt

Ask which level the user wants to target:

Where should business context live?
  1. Org level only    — shared across all projects
  2. Project level only — scoped to [Project Name]
  3. Both              — org context + project-specific context

Validate permissions

Check caller_role for the chosen target(s) against SKILL.md's "Permissions gate writes" constraint (the canonical role matrix). If the user lacks write permission for a level, name the required role from that matrix and offer alternatives:

  • Can't write to org → offer targeting project only.
  • Can't write to project → offer targeting org only, or exporting locally.

Set and confirm

Update target_level to "org", "project", or "both". Confirm back to the user: "Got it — targeting [level(s)]."

Follow-on

Offer the next natural step based on where they are in the workflow:

  • If they haven't run status yet: "Want me to check your AI readiness status first?"
  • If they have context to import: "Ready to import your existing context?"
  • Otherwise: "Ready to set up context from scratch?"
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. 2d ago First seen · 38 lines · 0 tokens per session scan A acc73959ac41

Subscribe to this mod's changes

target is a command published in the GitHub repository mixpanel/ai-plugins (15 stars, last pushed 8d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 315 tokens. 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.