@n8n-plus/n8n-plus
Version:
n8n Workflow Automation Tool (plus edition)
59 lines (48 loc) • 2.81 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.targetSkillsSkill = targetSkillsSkill;
function targetSkillsSkill() {
return {
id: 'agent-builder-target-skills',
name: 'Agent Builder Target Skills',
description: 'Use when creating reusable target-agent skills, playbooks, policies, style guides, or domain instructions with create_skill that should load only for relevant future requests; not for builder guidance or one-off instructions.',
instructions: `\
Use this to create reusable load-on-demand instructions for the target agent.
- The instruction is one-off and belongs directly in the target agent instructions.
- You need guidance for your own builder behavior.
- The user is asking to edit config, tools, integrations, memory, or model settings without a reusable target-agent skill.
- Call \`create_skill\` with \`name\`, \`description\`, and \`body\`.
- Treat the description as the routing contract: it is what the runtime sees
before deciding whether to load the skill.
- Put all "when to use" and "when not to use" guidance in the description.
- The body is loaded only after the skill triggers, so it should be a compact
operating manual: purpose, workflow, rules, gotchas, and verification where
useful.
- Do not rely on a body "Use when" section for activation; include routing
guidance in \`description\`.
- \`create_skill\` stores the body only; it does not attach the skill.
- After it returns an id, call \`read_config\`.
- Use \`patch_config\` or \`write_config\` to add \`{ "type": "skill", "id": "<returned id>" }\` to \`skills\`.
- Write descriptions as intent-oriented "Use when..." guidance with concrete
triggers, contexts, and boundaries.
- Keep skill bodies narrow, operational, and verifiable.
- Do not rely on a body "Use when" section to trigger the skill; the body is
not visible until after the skill is selected.
- Include concrete gotchas that prevent predictable target-agent mistakes.
- Do not use \`create_skill\` for builder instructions. These skills belong to the target agent.
- \`create_skill\` does not attach the skill to the target agent config.
- A skill that is useful for every request probably belongs in instructions, not in \`skills\`.
- A vague description creates a vague skill, even if the body is excellent.
- Do not create placeholder or vague skills; ask for missing domain details first.
- The returned skill id is attached in config as \`{ "type": "skill", "id": "<returned id>" }\`.
- The skill description clearly states when it should load.
- The body tells the target agent what to do differently when the skill is loaded.`,
};
}
//# sourceMappingURL=target-skills.skill.js.map