From chat to the terminal|INEMA.CLUB-PRO

Lesson 7 · 18 min

AGENTS.md, Skills, and memory you can check

Every new conversation with the agent starts from scratch. Without an instruction file, you repeat the same reminders; with vague instructions, nothing changes. Rules you can check, a procedure saved in a Skill, and short, dated memory help the agent improve with every task.

Start the lesson
A hand pointing to an instruction sign posted on the door of a workspace.

In this lesson, you will

  1. 1Write an observable rule: action and evidence
  2. 2Know which AGENTS.md applies: global, project, subfolder
  3. 3Save a repeated procedure in a Skill
  4. 4Dated memory and a failure with the smallest fix

Objective: rewrite AGENTS.md with five checkable rules and turn a real failure into a rule for the next run.

01Sign on the door, procedure in the binder

Where each type of instruction lives. Click each block.

Scroll down: each step below lights up its part of the diagram.

  1. 1/5

    AGENTS.md

    It explains how to work there: where to start reading, how to check your work, what not to do, and the delivery format. Leave out the history and reasons. A short file gets read in full.

  2. 2/5

    Skill

    A procedure that repeats (the weekly list, Friday’s report) becomes a Skill: a SKILL.md that starts with a name and description. The agent uses it when the task calls for it, without loading the whole manual for every task.

  3. 3/5

    Memory

    The model isn’t learning: it’s a file the agent reads when you point it to one. Save stable facts and decisions with the date and reason, not the whole conversation. Mark at the top when it was reviewed.

  4. 4/5

    Failures

    Symptom, observed cause, smallest fix, and verification, in one line. Say whether the failure came from the request or the infrastructure. Put the fix where the next run will read it: AGENTS.md or the Skill.

  5. 5/5

    The agent that improves

    A verifiable rule at the door, a playbook in the binder, short dated memories, and every slip becoming a small safeguard. That’s how tomorrow’s task turns out better than today’s, without switching models.

None of these files overrides system instructions, tool permissions, or what you explicitly ask for in the conversation.

02Four habits

Click each step.

1. Observable rule

Try the sign test: “wear safety glasses” can be checked by looking; “be careful” can’t.

A good rule calls for an action and leaves evidence in the deliverable. Remove rules that don’t change any decisions from the file.

ObservableCompare the report total with sales.csv and show the difference.

03Templates

Copy and adapt them for your folder. Replace anything inside < >.

AGENTS.md · five verifiable rules
# Instructions for the agent

Purpose: <what this project produces>

1. Read README.md before changing anything.
2. Use only entradas/ and saidas/; don’t delete or rename files.
3. Don’t make up data that isn’t in entradas/; list anything missing as a pending item at the end.
4. Never write keys or passwords to a text file; mention only the .env variable name.
5. Finish by saying: what you changed, how you checked it, and what’s still pending.
.agents\skills\relatorio-semanal\SKILL.md
---
name: relatorio-semanal
description: Generate a weekly report draft when the user provides a sales CSV. Don’t use it to send reports or handle credentials.
---

## Input
A CSV in entradas/.

## Steps
1. Check the header and number of records before generating.
2. Add up the values; don’t make up missing data.
3. Write the draft to saidas/relatorio.md.

## Output and verification
Cite the source, known total, and pending items. Stop before sending or publishing.
config\memoria.md
# Memory
Reviewed on: <dd/mm/yyyy>

- <stable fact 1, e.g., short reports, pending items at the end>
- <stable fact 2>
- <stable fact 3>
config\falhas.md
| Date | Symptom | Observed cause | Smallest fix | Verification | Type |
|---|---|---|---|---|---|
| <dd/mm> | empty report | spreadsheet has no records | check the number of rows before generating | empty spreadsheet shows a warning, not a report | infrastructure |
Request · check what it loaded
Summarize the instructions you loaded in this folder and say which file each one came from. Then, check ../config/memoria.md and, when you do the next task, say which fact from memory you used.
cmd · create the Skill folder and check it
mkdir .agents\skills\relatorio-semanal
notepad .agents\skills\relatorio-semanal\SKILL.md
type .agents\skills\relatorio-semanal\SKILL.md
Simulation: illustrative example
  • "Be excellent." → how to check: there’s no way.
  • "Compare the total with sales.csv and report the difference." → the deliverable includes the sum and the difference.
  • "Review everything very carefully." → replace it with "List the outstanding items at the end."

04Practice

In the project and the config folder.

E13 · Five rules you can check

20 min

Rewrite AGENTS.md with five rules. Next to each one, note how you’ll check whether it was followed. Give it a task and check.

Done when: for each of the five rules, you point to evidence in the agent’s deliverable that shows it was followed.

E14 · Turn the failure into a rule

15 min

Record one real failure from earlier lessons in config\falhas.md (symptom, cause, smallest fix, verification, type) and add the fix to AGENTS.md.

Done when: on the next task, the same problem doesn’t happen again, and you can say which line in AGENTS.md prevented it.

05Test what you learned

The explanation appears after your answer.

Question 1 of 4

Which of these rules can you check by looking at the agent’s deliverable?competency

To learn more

Previous lessonNext lesson