Skip to main content

Skills and context

Keep your own skills and context in cloud folders, and CloseCore's agent reads them when it works your agent tasks. Claude can read them too, through the CloseCore connector (see Skills and context in your own Claude). A skill is a procedure for one kind of work, written the way your team does it. Context is the rules that apply to every task, such as a materiality threshold or a file naming convention, written in a README.md file, with any reference files the agent may need. You choose the folders for each subsidiary on Agent Skills and Agent Context in the AI menu.

note

Skills and context folders are part of the agent-task capability and may not be enabled for your account. Contact your account manager if you'd like access.

What each folder holds​

SkillsContext
Where you choose the folderAgent SkillsAgent Context
What it holdsOne subfolder for each skill, with a SKILL.md file in itA README.md file of rules, and any other files the agent may need
When the agent uses itEvery run has every skill. The agent follows one when a step mentions it with @, or when its description fits a stepThe agent reads the README.md on every run, and opens the other files when the README.md points to one or the task needs it

Skills and context apply when the agent works an agent task, including a test run in Training.

Who can set it up​

Choosing the folders needs the Manage agent skills and context permission, under Org Settings → Agent in Roles & permissions. Admin and System Admin have it. To give it to someone else, add it to a custom role. That also turns on Configure mappings for cloud storage, which the folder picker needs.

To choose a folder for a subsidiary, you also need access to that subsidiary. For a subsidiary group, you need access to all of its active subsidiaries.

People who can read agent tasks but do not have the permission see the same skills on Agent Skills, read-only, with the sentence "An administrator chooses this folder." They can select the arrow next to a skill to see its files. They do not see the folder at the top of each tab, with Sync now, Change, and Remove, and Agent Context is not in their menu. Opening a file or folder in your cloud storage also needs the Open cloud storage links permission.

Choose a folder​

  1. In the AI menu, select Agent Skills for a skills folder, or Agent Context for a context folder. The page is for the subsidiary selected at the top of the page. To work on another subsidiary, select it there.
  2. Select the tab for the tasks the folder applies to:
    • Organization skills or Organization context: the tasks of every subsidiary.
    • Subsidiary group skills or Subsidiary group context: the tasks of every subsidiary in the subsidiary's group. This tab appears only when the subsidiary is in a group.
    • The tab named after the subsidiary, such as United States skills or United States context: that subsidiary's tasks only.
  3. Select Choose folder.
  4. For Connection, choose the cloud storage connection that can open the folder. If you use Google Drive or OneDrive, select the drive to use. To add a connection, see Managing integrations.
  5. Under Folder, select the link to open the folder picker, then select the folder.
  6. Select Save.

The folder syncs in the background, usually within a minute. The tab then shows when CloseCore last read it.

A task reads the folders of its own subsidiary, of that subsidiary's group, and of the organization. Each of these has at most one skills folder and one context folder, and a folder holds skills or context, not both. The organization's and a group's folders are the same whichever subsidiary's page you change them on.

To use a different folder, select Change. To stop using a folder, select Remove. The folder and its files stay in your drive.

Choosing the folder​

  • Choose a folder outside your subsidiaries' CloseCore folders: not inside a subsidiary's Root Folder, and not a folder that contains one. CloseCore refuses it with a message such as "This folder is inside a subsidiary's CloseCore folder. Choose a folder outside your subsidiaries' CloseCore folders." A skills or context folder cannot sit inside another one either.
  • The organization's folder cannot also be chosen for a subsidiary or a subsidiary group, and a folder that a subsidiary or group uses cannot be chosen for the organization. CloseCore refuses the first with a message such as "This is the organization's skills folder, which every subsidiary already reads. Choose another folder." and the second with "A subsidiary or group already uses this folder. Remove it there first, or choose another folder."
  • CloseCore does not manage access to the folder; you do, in your cloud storage. Anyone who can edit this folder can change the instructions the agent follows, as the window where you choose the folder warns. Limit edit access to people you trust to instruct the agent.
  • Do not put passwords, keys, or other secrets in these files. The agent reads them.

Write a skill​

A skills folder holds one subfolder for each skill. A subfolder is a skill when it contains a file named SKILL.md. It can also hold the files the skill uses, such as a template workbook or a script, in subfolders if you like. Files placed directly in the skills folder, outside a skill's subfolder, are ignored, and the tab does not list them. Choose the folder that contains your skill folders, not a skill folder itself.

Skills folder
Bonus accrual
SKILL.md
accrual-template.xlsx
Prepaid review
SKILL.md

SKILL.md holds the instructions, written the way you would brief a new colleague. Start it with a description:

---
description: Calculates the monthly bonus accrual from the payroll register and the bonus plan. Use when a task asks for a bonus accrual.
---

# Bonus accrual

1. Open the payroll register for the task's period in the task folder.
2. For each employee in the bonus plan, accrue the plan percentage of base pay earned to date.
3. Copy accrual-template.xlsx from this skill's folder and fill in the copy.
4. Tie the total to the bonus accrual account's balance in the ERP.
5. If they differ, stop and ask which entries explain the difference.
  • The description appears in the skills list, and the agent uses it to decide whether the skill fits a step. Say what the skill does and when to use it. CloseCore takes it from the description: line between the two --- lines. Without one, it uses the first line of text that is not a heading. It keeps the first 1,024 characters. If the file has neither, the skill has no description and the tab reminds you to add one. The agent then has only the skill's name to go on, so mention the skill in the steps that need it.
  • The skill's name is its folder's name. A name: line in the file is ignored.
  • A Google Sheet in a skill is read as an Excel file. A Google Doc or a Google Slides file cannot be read, and the skill's files list it as skipped. Create SKILL.md as a file, not as a Google Doc, or the folder is not a skill and the tab does not list it.

The folder name becomes the mention​

CloseCore builds the mention from the folder name. Letters become lowercase and lose their accents. Spaces, underscores and hyphens become a single hyphen, however many are in a row, and every other character is removed. The folder Bonus accrual is mentioned as @bonus-accrual, and Prepaid review as @prepaid-review. A name with no letters from A to Z or digits, such as one written only in Japanese or Cyrillic, cannot be mentioned, so the folder is not a skill and the tab does not list it.

In a task step's guidance, type @ and pick the skill from the list. Your own skills are listed first, under Your skills, and you use them the same way as the built-in skills. The agent reads the skill's SKILL.md before it works that step and follows it as part of the step.

Every skill that applies to the subsidiary, yours and the built-in ones, is available to every run, whether or not a step mentions it. The agent sees each skill's name and description, so it may use one that fits a step even when the step does not mention it. To be sure a skill is followed, mention it.

If you rename or remove a skill folder, its mention changes or disappears. A step that still uses the old mention can no longer find the skill, so the agent says so and asks what to do. Edit the step to use the new mention.

Skills with the same name​

  • If a folder's mention is the same as a built-in skill's mention, your skill replaces the built-in one in the @ list and in runs. A folder named Prepare JE is mentioned as @prepare-je, the same as the built-in Prepare JE table skill, so every step that mentions it follows your skill. Your skill is marked Replaces the built-in skill, and on the Built-in tab the built-in skill is marked Replaced by your skill. Do this only on purpose.
  • If the same mention exists at more than one level, the narrowest wins: subsidiary over group over organization. Only the skill the agent uses is listed, on its own level's tab. The wider level's skill with that mention is not listed.
  • If two subfolders of one folder give the same mention, only the first, by name, is used, and the other is not listed.

Scripts and other files​

A skill can include a template workbook, reference files, or scripts for the agent to run. Name them in SKILL.md by their path inside the skill's folder, for example accrual-template.xlsx.

Skill files are read-only while the agent works. It can open and copy them, but it cannot change them or save anything into the skill's folder. So:

  • A script must write its output somewhere other than the skill's own folder, for example to a path the agent gives it.
  • A template has to be copied before it is filled in. Say so in SKILL.md, as in the example above.

The files the agent produces for you to review are saved in the task's work folder under Agent Files. See Run files and history.

Write context​

Put the rules in a file named README.md directly in the context folder. The agent reads it at the start of every run, as rules that apply to every task for the subsidiary. The folder can also hold any other files the rules need, such as a policy PDF, a vendor list, or a template, in subfolders if you like.

Context folder
README.md
Vendors.xlsx
Policies
Materiality.pdf
# Close rules

- Treat differences under 50 as immaterial.
- Save workpapers as `<account> <description> <YYYY-MM>.xlsx`.
- Code bills with the vendor list in `Vendors.xlsx`.
- For materiality questions, follow `Policies/Materiality.pdf`.
  • Only the README.md directly in the folder is read on every run. Its name can be in any letter case, such as readme.md. A README.md in a subfolder is an ordinary file.
  • The agent opens the folder's other files when the README.md points to one or the task needs it. Name a file in README.md by its path inside the folder, as in the example. Like skill files, these files are read-only while the agent works. A Google Sheet is read as an Excel file.
  • Save README.md as a plain text file in UTF-8, not as a Google Doc. If CloseCore cannot read the README.md, the tab warns you, and runs go ahead without its rules.
  • Keep the README.md short. The tab warns when it holds more than 40 KB, because every run reads it.
  • A run reads at most 100 KB of README.md text in all, across the organization, group, and subsidiary folders. A run that would read more stops before it starts work, with a message that names the folders to shorten. See Limits.

Which instruction wins​

When instructions disagree, the agent follows the one higher in this list:

  1. A message from a person during the run.
  2. The task's description and steps. A skill that a step mentions counts as part of that step.
  3. The subsidiary's context.
  4. The subsidiary group's context.
  5. The organization's context.
  6. A skill the agent chose itself because its description fit a step.
  7. The agent's memory from earlier runs.

Context never overrides a task's own steps. If one task has to depart from its context, say so in its description or steps.

When a change takes effect​

CloseCore syncs each folder every hour. To pick up a change sooner:

  1. Select Sync now next to the folder.
  2. Wait for the sync to finish, then read the message that appears. It says whether anything changed, or why the folder could not be synced. A large folder takes longer.

If CloseCore can't find the folder, the folder shows Folder not found. Restore the folder in your cloud storage, or select Change to choose another. If the cloud storage connection needs reconnecting, a message next to the folder says so. Reconnect it, or ask your administrator to, then select Sync now again. If the folder still cannot be synced, contact CloseCore support.

A run takes its copy of the skills and context when it starts. A change therefore applies from the next run that starts after the folder syncs. A run already in progress keeps what it started with, including after you answer a question it was waiting on. To use a change in a task whose run has started:

  1. In Agent Tasks, select the task's status to open CloseCore Run.
  2. If the run is still going, select Stop.
  3. Select Restart, then confirm. This starts a new run with the current skills and context and clears the task's sign-offs.

See Talking to the agent.

To try a skill or a context folder before real tasks use it, run a test in a Training workspace. A test run reads the same skills and context as a real run for that workspace's subsidiary. The Trainer chat can mention your skills and list their files, but cannot read them.

Skills and context in your own Claude​

If you use Claude with the CloseCore connector, Claude can read your skills and context:

  • For a task run by your own agent, the briefing Claude starts the task with includes the subsidiary's context and lists the subsidiary's skills, each with the folder it comes from. Up to 40 KB of README.md text is in the briefing, and Claude reads any longer README.md through the connector. Claude reads a skill before a step that mentions it, and follows the same order as Which instruction wins.
  • In any other conversation, ask Claude to use one of your skills. It lists the subsidiary's skills and reads the one you name from your cloud folder.
  • Claude opens a skill's or context folder's other files through the connector. A workbook, PDF or other file that is not text, such as an image, comes back as a link to the file in your cloud storage. Claude opens it through its own connection to your storage, or asks you to attach it in the chat.
  • CloseCore's built-in skills, such as Prepare JE table, and agent reconciliations belong to CloseCore's agent. Claude sees only their names.
  • The limits for one run below apply to CloseCore's agent. A task run by your own agent does not stop over them.
warning

In your own Claude, a skill runs with everything that Claude can reach, such as its other connectors and the files on your computer, without the limits CloseCore sets for its own agent. CloseCore tells Claude to ask you before it runs a skill's script, and to say which folder the skill comes from. Keep only skills your team trusts in these folders.

Limits​

WhatLimit
Skill files in one run200, counting every file of every one of your skills that applies to the subsidiary, and one for each built-in skill with its own procedure, such as Prepare JE table
Context files in one run200, counting every file the agent can open in the organization's, group's, and subsidiary's context folders, README.md files included
README.md text in one run100 KB in total, across the organization's, group's, and subsidiary's context folders
Size of one skill or context file50 MB. A larger file is skipped.
Skill descriptionThe first 1,024 characters
README.md warning on the tabMore than 40 KB of text
Folder levels8, counting what is directly inside the folder you choose as level 1. Anything deeper is not read.

A run that would go over the skill files, context files, or README.md text limit stops before it starts work. CloseCore Run shows a message that names the limit, how much the run needs, and the folders that add to it, such as "This run needs 245 skill files, more than the 200 a run can mount: 180 from Organization skills (Org Skills Test) and 65 from United States skills (Entity Skills). Remove skills or files from those folders, then restart the run." To run the task:

  1. Remove skills or files from the folders the message names, or shorten their README.md files.
  2. Select Sync now next to each folder you changed, and wait for the sync to finish.
  3. In Agent Tasks, select the task's status to open CloseCore Run.
  4. Select Restart, then confirm.

A test in Training that goes over a limit stops in the same way and shows the same message.

Reading the pages​

Each tab shows its folder at the top, with when CloseCore last read it, Sync now, Change, and Remove. A skills tab then lists the skills the agent uses from that folder for the subsidiary, with their names and descriptions: one skill for each mention. A subfolder that is not a skill, such as one with no SKILL.md file, is not listed. Select the arrow next to a skill to see its files under their subfolders, as in a file explorer, with each file's size and the files the agent skips. Select a file or folder name to open it in your cloud storage. A context tab shows the folder's files the same way, with the README.md the agent reads on every run marked, and lists the files the agent skips with the reason. A warning above the files says when the folder has no README.md at its top level, or when runs cannot read it or would stop because of it.

You seeWhat it means
Not synced yetCloseCore has not read the folder yet. Wait a minute, or select Sync now.
Folder not foundCloseCore can no longer find the folder in your cloud storage, for example because it was deleted. Runs ignore the folder until a sync finds it again. Restore it, or select Change to choose another.
Replaces the built-in skillThe skill has the same mention as a built-in skill, so yours is used.
Replaced by your skillOn the Built-in tab: one of your skills has this skill's mention, so yours is used.
SkippedIn a skill's files: the agent does not get this file. The reason is listed under the skill's description. In a context folder's files: the agent cannot open this file. The reason is listed below the files.
Not readableIn a skill's files: the SKILL.md is not saved as UTF-8 text. The agent still gets it, but CloseCore cannot read its description. Next to a context folder's README.md: the file is not saved as UTF-8 text or cannot be downloaded, such as a Google Doc, so runs go ahead without its rules.
Read on every runNext to a context folder's README.md: the agent reads its rules at the start of every run.
Too largeNext to a context folder's README.md: it holds more than 100 KB of text, so runs that read the folder stop until it is shorter.
EmptyNext to a context folder's README.md: the file is empty, so runs read no rules from it.

If a tab lists none of the skills in its folder, a narrower level has a skill with the same mention as each of them, or reads the same folder as its own. The skills are listed on that level's tab.

A skill appears in the @ list only for the subsidiaries it applies to. When one is missing, open Agent Skills for that subsidiary and check its tabs.