figma-code-composer: Agent for Claude Code

.claude/agents/project-detector.md

project-detector is an agent for Claude Code from punkadillo/figma-code-composer. It costs 68 tokens per session (1,791 once invoked), scanned A, original, MIT.

A read-only project inspector that identifies a project's framework, programming language, styling system, and likely component, token, and icon locations.

In plain words
What is it for?
Use it during Figma component setup to determine how the target project is organised and which tools it uses.
Why use it?
It provides a structured picture of the project without changing any files.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is punkadillo/figma-code-composer's own configuration. It tells Claude Code how to work on figma-code-composer itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything figma-code-composer configures →

Reuse

Borrowing it

Nothing to install: this file belongs to punkadillo/figma-code-composer. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/punkadillo/figma-code-composer/main/.claude/agents/project-detector.md
Clone the repo
git clone --depth 1 https://github.com/punkadillo/figma-code-composer

Made for: Claude Code.

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 project-detector

README.md
[![agentmods](https://agentmods.dev/badge/agents/punkadillo/figma-code-composer/project-detector/github.svg)](https://agentmods.dev/agents/punkadillo/figma-code-composer/project-detector)
Your own site
<a href="https://agentmods.dev/agents/punkadillo/figma-code-composer/project-detector"><img src="https://agentmods.dev/badge/agents/punkadillo/figma-code-composer/project-detector/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for project-detector

Your own site · 80×15
<a href="https://agentmods.dev/agents/punkadillo/figma-code-composer/project-detector"><img src="https://agentmods.dev/badge/agents/punkadillo/figma-code-composer/project-detector.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,791 The whole file, excluding the scripts and references it only reads on demand.
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.00068 $0.01791
Opus 5.5 $0.00027 $0.00716
Sonnet 5.5 $0.00014 $0.00358
Haiku 4.5 $0.00007 $0.00179

Measured 2mo ago against content hash a1370f010d83, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

project-detector 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 2mo 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.

.claude/agents/project-detector.md · 119 lines

How it starts

The opening of the file, as written. The whole thing — 119 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Role

Read-only project inspector. Return one JSON object describing the target project. Write nothing.

protocols/skills.md lists which skills downstream agents will load once your output is consumed. You load none — detection is filesystem inspection.

Output schema

{
  "framework": {
    "name":       "react|vue|angular|svelte|unknown",
    "variant":    "next|vite|cra|nuxt|sveltekit|astro|remix|null",
    "version":    "<major.minor.patch>|null",
    "confidence": "high|medium|low",
    "evidence":   ["package.json has [email protected]", "src/app/layout.tsx exists"]
  },
  "language":           "ts|js|mixed",
  "cssSystem": {
    "name":       "tailwind-v4|tailwind-v3|unocss|css-modules|css-vars|sass|vanilla-extract|panda|styled-components|unknown",
    "confidence": "high|medium|low",
    "evidence":   ["src/styles/globals.css uses @theme directive (v4 marker)"]
  },
  "componentsDirs":     ["src/components"],
  "tokensDir":          "src/styles/tokens|null",
  "tokensPrefix":       "--hk-|--app-|--tw-|null",  // detected CSS-var prefix in existing token files
  "iconsDir":           "src/components/icons|null",
  "storiesFramework":   "storybook|null",
  "unitTestsFramework": "vitest|jest|karma|null",
  "e2eTestsFramework":  "playwright|null",
  "testingLibrary":     "react-testing-library|vue-testing-library|@testing-library/angular|@testing-library/svelte|none",
  "designMethodology":  "atomic|feature-sliced|component-based|flat|unknown",
  "ambiguities":        ["no components/ directory found", "tailwind 3.4 detected but @theme block also present"]
}

Detection rules

Framework — check package.json deps + devDeps:

Package name variant hint
next react next
react-scripts react cra
vite + react react vite
@remix-run/react react remix
astro (+ integration) react astro
nuxt vue nuxt
vue (alone) vue vite (if vite present)
@angular/core angular null
@sveltejs/kit svelte sveltekit
svelte (alone) svelte vite (if vite)

Read the full file on GitHub · 119 lines

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. 2mo ago First seen · 119 lines · 68 tokens per session scan A a1370f010d83

Subscribe to this mod's changes

project-detector is an agent published in the GitHub repository punkadillo/figma-code-composer (3 stars, last pushed 2mo ago), licensed MIT. It adds 68 tokens to every session and 1,791 once invoked, about $0.0003 per session on Opus 5.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-31.

Related

project-detector compared with agents from other repositories

project-detector next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
project-detectorpunkadillo/figma-code-composerAgent32mo agoMITA68Claude Code
verifierdrobins25/craftAgent73yesterdayMITA178Claude Code
web3-gasalvin-reyes/better-agentic-ideAgent452d agoMITA43Claude Code
architecture-strategisttdwhere123/do-itAgent282d agoMITA34Claude Code, Cursor
fact-checkersynaptiai/synapti-marketplaceAgent7yesterdayApache-2.0A39Claude Code
reviewermnzralee/claude-multi-agent-architectureAgent81mo agoMITA33Claude Code
e2e-testermnzralee/claude-multi-agent-architectureAgent81mo agoMITA41Claude Code