tesla-claude-plugin
CLAUDE.md0 starsChanged 7 months agoMITView on GitHub
A Claude Code plugin that wraps tesla-cli for natural language Tesla vehicle management. The plugin is the AI interface layer; the CLI is the execution engine.
The file
We split this CLAUDE.md into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 26
Create skills/<name>/SKILL.md with YAML frontmatter
- Very specific: line 27
Use allowed-tools: Bash(tesla *) to scope tool access
- Very specific: line 30
Keep SKILL.md under 500 lines — move reference material to separate files
≈ “Common” is an estimate: at least 1 in 5 of the 26,980 CLAUDE.md 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
Tesla Claude Plugin — Contributor Context
What is this?
A Claude Code plugin that wraps tesla-cli for natural language Tesla vehicle management. The plugin is the AI interface layer; the CLI is the execution engine.
Structure
.claude-plugin/plugin.json # Plugin manifest (name, version, author)
skills/*/SKILL.md # 9 skills — each a focused capability
bin/tesla-check # Pre-flight validation script
docs/design.md # Architecture design documentKey Rules
- Zero PII — never hardcode VINs, order numbers, names, or emails in any skill file
- Dynamic context — use
!tesla config show --json`` shell injection for runtime data - CLI is the engine — skills invoke
teslacommands, never duplicate business logic - Confirm destructive actions — unlock, trunk, sentry off, remote-start require user OK
- Descriptions under 250 chars — Claude Code truncates longer descriptions
Adding a Skill
- Create
skills/<name>/SKILL.mdwith YAML frontmatter - Use
allowed-tools: Bash(tesla *)to scope tool access - Set
disable-model-invocation: truefor commands with side effects - Set
user-invocable: falsefor background knowledge skills - Keep SKILL.md under 500 lines — move reference material to separate files
Testing
claude --plugin-dir . # load plugin locally
/tesla:status # test a skill
bin/tesla-check # run pre-flight validationNaming Conventions
- Skill names: lowercase + hyphens only (e.g.,
battery-health) - Directories match skill names
- Plugin namespace:
tesla:(e.g.,/tesla:status)
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.

