agentleFS
ilyaevilyaev/glotti/.agents/skills/adjust-persona/SKILL.md

adjust-persona

Skill1 starsChanged 9 months agoMITView on GitHub

Modifies an existing AI coaching persona based on a prompt or adjustment description, and ensures all dependent components (config, UI cards, frontend reporting) are updated to match the new behavior.

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 1 is distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use this skill whenever a user asks to "change the prompt", "adjust the persona", or "make the AI behave differently" for an existing …

    line 12
  2. Distinctive:

    When asked to adjust a persona, you MUST follow these steps in order:

    line 16
  3. Very specific:

    Action: Update the report configuration for the specific [persona_name].

    line 24
  4. Very specific:

    promptIntro: Update the AI framing to match the new strictness or role.

    line 25
  5. Very specific:

    categories: Update the 4 evaluation categories to match the specific things you just told the prompt to watch out for.

    line 26
  6. Very specific:

    Action: If you instructed the prompt to use a specific tool (like Google Search or Code Execution), ensure that tool is enabled in the …

    line 32
  7. Very specific:

    Do not break the UI: Ensure that if an extraField fails to generate from the LLM, the frontend components (Card and Report) have sensible …

    line 47
  8. Very specific:

    Always verify the build: Run npx tsc --noEmit && npm run build:client after updating the config and frontend components to ensure no …

    line 49

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Adjust Persona Skill

Purpose

This skill provides a strict workflow for updating an AI persona. Because the personas in Gemili are deeply integrated into the reporting pipeline, changing what a persona "looks for" or how it behaves requires updating several layers of the application to ensure the user receives accurate feedback.

Use this skill whenever a user asks to "change the prompt", "adjust the persona", or "make the AI behave differently" for an existing scenario (e.g., professional_introduction, pitch_perfect, veritalk).

Workflow

When asked to adjust a persona, you MUST follow these steps in order:

1. Update the System Prompt

  • Target File: server/agents/prompts/[persona_name].md
  • Action: Rewrite or adjust the markdown prompt. Extract any new instructions, behavior hooks, or evaluation criteria the user requested.

2. Update the Server Report Config

  • Target File: server/config.ts (specifically the MODES object)
  • Action: Update the report configuration for the specific [persona_name].
    • promptIntro: Update the AI framing to match the new strictness or role.
    • categories: Update the 4 evaluation categories to match the specific things you just told the prompt to watch out for. Ensure the description fields give clear instructions to the report generator.
    • displayMetrics: Adjust the selected quantitative metrics if necessary.
    • extraFields: Crucial Step. If the persona is now evaluating something new (e.g., "Curveball Response" or "Weakest Moment"), update the extraFields to extract those strings/arrays. Remove outdated fields to save tokens.

3. Update the Gemini Bridge (If adding tools)

  • Target File: server/session/gemini-bridge.ts
  • Action: If you instructed the prompt to use a specific tool (like Google Search or Code Execution), ensure that tool is enabled in the connectGemini function for this specific mode.

4. Update the Frontend Report Card

  • Target File: client/src/components/report/cards/[PersonaName]Card.tsx
  • Action: This card renders the "shareable" dynamic image. Update the bottom row of metric cards to map to the new extraFields you defined in step 2. Ensure layout handles missing fields gracefully.

5. Update the Frontend Report View

  • Target File: client/src/components/report/[PersonaName]Report.tsx
  • Action: This is the detailed UI view. Update the rendered widgets to properly display the new extraFields and remove dead code referencing old fields. Ensure you extract the fields from data.extraFields or data.extra.

6. Update Documentation

  • Target File: specs/[persona_name].md (if it exists)
  • Action: Briefly update the central specification document to reflect the new capabilities or behavioral hooks.

Safety Constraints

  • Do not break the UI: Ensure that if an extraField fails to generate from the LLM, the frontend components (Card and Report) have sensible visual fallbacks (e.g., || 'Solid Performance').
  • No Parallel Tool Calls for Edits: Edit these files sequentially to ensure the config matches the prompt, and the UI matches the config.
  • Always verify the build: Run npx tsc --noEmit && npm run build:client after updating the config and frontend components to ensure no TypeScript interfaces were broken by changing extraFields.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.