agentleFS
lxyerlxyer/multi-agent-collaboration-system/.agents/skills/integrate-skill/SKILL.md

integrate-skill

Skill1 starsChanged 7 months agoMITView on GitHub

Adapts an external skill into project-specific development guidelines in .trellis/spec/. Creates guideline sections, code example templates with .template suffix, and updates spec indexes. Use when integrating an external skill, adding a new skill's patterns to project conventions, or incorporating third-party skill best practices into .trellis/spec/ documentation.

  • Installs packages

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If the skill cannot be found, ask the user for the source path or repository.

    line 40
  2. Very specific:

    Add a new section to the corresponding doc.md:

    line 65
  3. Very specific:

    Add to the Quick Navigation table in index.md:

    line 113
  4. Distinctive:

    If this skill is frequently used, create a shortcut skill:

    line 171

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

Integrate Skill into Project Guidelines

Adapt and integrate a reusable skill into your project's development guidelines (not directly into project code).

Usage

$integrate-skill <skill-name>

Examples:

$integrate-skill frontend-design
$integrate-skill mcp-builder

Core Principle

[!] Important: The goal of skill integration is to update development guidelines, not to generate project code directly.

  • Guidelines content -> Write to .trellis/spec/{target}/doc.md
  • Code examples -> Place in .trellis/spec/{target}/examples/skills/<skill-name>/
  • Example files -> Use .template suffix (e.g., component.tsx.template) to avoid IDE errors

Where {target} is frontend or backend, determined by skill type.

Execution Steps

1. Read Skill Content

Locate and read the skill instructions:

  • .agents/skills/<skill-name>/SKILL.md in the repository
  • Skill list in AGENTS.md (when available in current context)

If the skill cannot be found, ask the user for the source path or repository.

2. Determine Integration Target

Based on skill type, determine which guidelines to update:

Skill CategoryIntegration Target
UI/Frontend (frontend-design, web-artifacts-builder).trellis/spec/frontend/
Backend/API (mcp-builder).trellis/spec/backend/
Documentation (doc-coauthoring, docx, pdf).trellis/ or create dedicated guidelines
Testing (webapp-testing).trellis/spec/frontend/ (E2E)

3. Analyze Skill Content

Extract from the skill:

  • Core concepts: How the skill works and key concepts
  • Best practices: Recommended approaches
  • Code patterns: Reusable code templates
  • Caveats: Common issues and solutions

4. Execute Integration

4.1 Update Guidelines Document

Add a new section to the corresponding doc.md:

@@@section:skill-<skill-name>
## # <Skill Name> Integration Guide

### Overview
[Core functionality and use cases of the skill]

### Project Adaptation
[How to use this skill in the current project]

### Usage Steps
1. [Step 1]
2. [Step 2]

### Caveats
- [Project-specific constraints]
- [Differences from default behavior]

### Reference Examples
See `examples/skills/<skill-name>/`

@@@/section:skill-<skill-name>

4.2 Create Examples Directory (if code examples exist)

# Directory structure ({target} = frontend or backend)
.trellis/spec/{target}/
|-- doc.md                      # Add skill-related section
|-- index.md                    # Update index
+-- examples/
    +-- skills/
        +-- <skill-name>/
            |-- README.md               # Example documentation
            |-- example-1.ts.template   # Code example (use .template suffix)
            +-- example-2.tsx.template

File naming conventions:

  • Code files: <name>.<ext>.template (e.g., component.tsx.template)
  • Config files: <name>.config.template (e.g., tailwind.config.template)
  • Documentation: README.md (normal suffix)

4.3 Update Index File

Add to the Quick Navigation table in index.md:

| <Skill-related task> | <Section name> | `skill-<skill-name>` |

5. Generate Integration Report


Skill Integration Report: <skill-name>

# Overview

  • Skill description: [Functionality description]
  • Integration target: .trellis/spec/{target}/

# Tech Stack Compatibility

Skill RequirementProject StatusCompatibility
[Tech 1][Project tech][OK]/[!]/[X]

# Integration Locations

TypePath
Guidelines doc.trellis/spec/{target}/doc.md (section: skill-<name>)
Code examples.trellis/spec/{target}/examples/skills/<name>/
Index update.trellis/spec/{target}/index.md

{target} = frontend or backend

# Dependencies (if needed)

# Install required dependencies (adjust for your package manager)
npm install <package>
# or
pnpm add <package>
# or
yarn add <package>

[OK] Completed Changes

  • Added @@@section:skill-<name> section to doc.md
  • Added index entry to index.md
  • Created example files in examples/skills/<name>/
  • Example files use .template suffix

# Related Guidelines

  • [Existing related section IDs]

6. Optional: Create Usage Skill

If this skill is frequently used, create a shortcut skill:

$create-command use-<skill-name> Use <skill-name> skill following project guidelines

Common Skill Integration Reference

SkillIntegration TargetExamples Directory
frontend-designfrontendexamples/skills/frontend-design/
mcp-builderbackendexamples/skills/mcp-builder/
webapp-testingfrontendexamples/skills/webapp-testing/
doc-coauthoring.trellis/N/A (documentation workflow only)

Example: Integrating mcp-builder Skill

Directory Structure

.trellis/spec/backend/
|-- doc.md                           # Add MCP section
|-- index.md                         # Add index entry
+-- examples/
    +-- skills/
        +-- mcp-builder/
            |-- README.md
            |-- server.ts.template
            |-- tools.ts.template
            +-- types.ts.template

New Section in doc.md

@@@section:skill-mcp-builder
## # MCP Server Development Guide

### Overview
Create LLM-callable tool services using MCP (Model Context Protocol).

### Project Adaptation
- Place services in a dedicated directory
- Follow existing TypeScript and type definition conventions
- Use project's logging system

### Reference Examples
See `examples/skills/mcp-builder/`

@@@/section:skill-mcp-builder

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.