AGENT SKILL

profile

Creates or updates the project profile (.tune-up/project.md and config.json) by detecting git, stack, tests, database and deploy. Use on: create the project profile, profile; cria o perfil do projeto, perfil do projeto.

License 许可
MIT
所属仓库
stage2dev/tune-up
最近更新
2026-11-14
Stars
★ 1
Forks
0

01 前言 Front Matter

name
profile
description
Creates or updates the project profile (.tune-up/project.md and config.json) by detecting git, stack, tests, database and deploy. Use on: create the project profile, profile; cria o perfil do projeto, perfil do projeto.
allowed-tools
Bash(sh "${CLAUDE_PLUGIN_ROOT}/scripts/py" scripts/guarda.py info)
argument-hint
[project folder]
disable-model-invocation
true

03 SKILL.md 正文

Project profile

Folder: $ARGUMENTS (empty = current directory)

Context (injected)

Context: !sh "${CLAUDE_PLUGIN_ROOT}/scripts/py" scripts/guarda.py info

Fields: language, owner, reply_style, names{}, models{}, profile_path, plans_dir, setup_done, tools. If the JSON did not load, run the command once with Bash. Reply in language; if the project already has a language in .tune-up/config.json, that one wins for the project files. Call the user owner.

Creates or updates .tune-up/project.md and .tune-up/config.json at the project root. tune-up hooks and skills read both files. A legacy .tune-up/projeto.md or Portuguese config keys (branch_principal, merge_pelo_claude, ...) may exist: read them as they are, show what maps to the new keys, and do NOT convert unless the owner asks.

Step 1 - Detect (read only)

What How
Git repo and where it is git rev-parse --show-toplevel; if the working folder is not the repo, look for .git in subfolders
Remote and main branch git remote -v; git symbolic-ref refs/remotes/origin/HEAD
Stack package.json, pyproject.toml, go.mod, Cargo.toml
Tests and lint (definition of done) package.json scripts, pytest, ruff, tsc, CI files
Database folders such as supabase/, migrations/, prisma/, sql/
Deploy Dockerfile, vercel.json, hosting config files
Logs and errors mentions of error trackers or log tools in the README or .env.example
Synced folders ask; signs: .stfolder, .stignore
Plans and docs plans_dir, docs/

If a profile already exists: read it, show what changed and update only that.

Step 2 - Ask (one round, only what could not be detected)

AskUserQuestion, up to 4 questions, recommended option first. Candidates:

  1. Who does the merge? (default: the owner)
  2. What is "production" and what must never be touched in it?
  3. Customers or pilots that are not guinea pigs?
  4. Synced folders or outbound-message rules the hooks must respect?
  5. Project language, if different from the user's.

Step 3 - Write

  • ${CLAUDE_PLUGIN_ROOT}/templates/profile/project.md is the model of .tune-up/project.md. Fill ALL sections; what you do not know stays "not defined". No secrets, passwords or tokens. Write it in the project language.
  • ${CLAUDE_PLUGIN_ROOT}/templates/profile/config.json is the model of .tune-up/config.json. Keep the contract keys (project, main_branches, claude_may_merge, commit_on_main, synced_roots, free_repos, research_free_paths, auth_phrases, research_on_phrases, research_off_phrases, bash_rules, language, plans_dir, supabase_guard, line_limit, line_limit_exclude), drop the _comment* keys and the ones you do not use. Keep the safe defaults unless the owner asked otherwise.
  • If the folder is synced, run chmod u+w (macOS/Linux; on Windows attrib -r) in the SAME command as the mkdir and the write.

Step 4 - Check

  • python3 -c "import json; json.load(open('.tune-up/config.json'))" must pass (python where python3 is missing).
  • Every command under "Definition of done" must really exist: run --help or check the script; mark "not tested" if you did not run it.
  • Do not commit unless asked. Say whether .tune-up/ goes into git or stays local.

Step 5 - Trust

Run this yourself as the last step (it is a guard-relevant file, so the hook asks the owner to confirm; they approve in the prompt):

sh "${CLAUDE_PLUGIN_ROOT}/scripts/py" scripts/guarda.py confiar <absolute path of .tune-up/config.json>

Warn: settings that loosen a guard (merge by Claude, commit on main, free repos, supabase_guard: false, a higher line_limit, extra authorization phrases) only take effect AFTER this command is confirmed, and again after each later edit of the file.

Answer

Paths of the two files, what stayed "not defined", what the owner must confirm, and that the owner confirmed the trust command.

04 同仓库更多 Skills

stage2dev
stage2dev/tune-up

instalar

One-step setup of the WhatsApp sales screen on this computer: Docker, the local Evolution API and the sales service, step by step in plain words. Use on: install, set up WhatsApp, prepare sales; instalar, preparar, preparar o WhatsApp, setup WhatsApp, configurar vendas.

★ 1
stage2dev
stage2dev/tune-up

video

Makes a hook-first, business-oriented silent vertical reel (9:16, 1080x1920 MP4, 10 or 15 s) from a briefing, using only the owner-approved brand: strategy, the reel composition of the studio kit filled with the script and a hero drawn for this briefing, motion by the studio JavaScript engine (seek-safe, no network), render or slide reserve, and the studio QA. Runs unattended from the panel actions estudio.video and estudio.video-motion. Use on: vídeo, reel, reels, story em vídeo.

★ 1
stage2dev
stage2dev/tune-up

post

Makes a hook-first, business-oriented still post or carousel (PNG per frame) from a briefing, using only the owner-approved brand: strategy first, one chosen hook, a composition of the studio kit with a hero drawn for this briefing, one call to action, and every frame checked by the studio QA. Runs unattended from the panel action estudio.post. Use on: post, carrossel, carousel, peça estática, post do Instagram.

★ 1
stage2dev
stage2dev/tune-up

marca

Discovers the project's brand (colors, fonts, logo, name) from its own files and shows it to the owner for approval in the panel. Use on: discover the brand, descobrir marca, identidade visual do projeto, marca do estúdio.

★ 1
stage2dev
stage2dev/tune-up

marca-ler

Reads the project's brand (marca.json) and says whether the owner approved it. Read-only: never approves, edits or writes anything. Use on: read the brand, is the brand approved, ler marca, marca aprovada.

★ 1
stage2dev
stage2dev/tune-up

anuncio

Makes a hook-first, business-oriented ad from a briefing, using only the owner-approved brand: one master image plus the aspect-ratio adaptations the platform needs, text variations inside the platform limits, and an import sheet with everything Paused (Google Ads Editor CSV, or an experimental Meta sheet). Publishes nothing and calls no ad API. Runs unattended from the panel action estudio.anuncio. Use on: anúncio, anuncio, ad, Google Ads, Meta Ads.

★ 1