Integrate Claude Skill into Guidelines

VerifiedCaution

Learn how to integrate a Claude global skill into project development guidelines by updating documentation and examples, not by generating code directly.

Sby Skills Guide Bot
DocumentationIntermediate
8/5/2026
Claude Code
#skill-integration#guidelines#project-spec#trellis#workflow

Recommended for

Automated summary

This skill adapts a global Claude skill and folds it into a project's development guidelines under `.trellis/spec/`, without touching application code.

Strengths

  • Cleanly separates guideline prose from code samples, with samples suffixed `.template` so IDEs don't flag them as broken files
  • Ships an explicit routing table that sends each skill type to `.trellis/spec/frontend/`, `.trellis/spec/backend/`, or `.trellis/`
  • Emits a structured guidelines section using `@@@section:skill-<name>` markers and adds a row to the quick-navigation index
  • Ends with an integration report that includes a tech-stack compatibility table

Limitations

  • Assumes the project already follows the `.trellis/spec/` layout and has the `openskills` CLI available
  • Only routes to `frontend`, `backend`, or `.trellis/`, so other skill types have no dedicated destination
  • Writes guidelines and examples only, never real code, so actual adoption remains a manual follow-up
When to use it

Use it when you want to formalize adopting a global Claude skill into a project's documented conventions instead of applying it ad hoc.

When not to use it

Avoid it when you want to generate or edit application code directly, or when the project isn't organized around `.trellis/spec/`.

Security analysis

Caution
Quality score85/100

The skill orchestrates reading external skill content, writing project documentation, and optionally installing npm packages. While the actions are not inherently destructive or exfiltrating, npm install introduces supply-chain risk through package lifecycle scripts, and the skill relies on bash execution. This warrants caution but not a risky rating, as the intent is legitimate development workflow adaptation.

Findings
  • •Instructs running `npm install <package>`, which can execute arbitrary lifecycle scripts from third-party packages.
  • •Uses bash commands (`openskills read`, `mkdir`, etc.) without declaring allowed-tools, though commands are legitimate for the intended workflow.
  • •Integration of external skill content could introduce unverified instructions into project guidelines.
How this analysis is made

Examples

Integrate a frontend skill
Integrate the frontend-design skill into our frontend guidelines under .trellis/spec/frontend and add its code patterns as .template examples.
Backend skill integration
/trellis:integrate-skill mcp-builder
E2E testing skill
Adopt the webapp-testing skill into our E2E guidelines with example templates and update the index table.

Integrate Claude Skill into Project Guidelines

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

Usage

/trellis:integrate-skill <skill-name>

Examples:

/trellis:integrate-skill frontend-design
/trellis: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

openskills read <skill-name>

If the skill doesn't exist, prompt user to check available skills:

# Available skills are listed in AGENTS.md under <available_skills>

2. Determine Integration Target

Based on skill type, determine which guidelines to update:

| Skill Category | Integration 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 Requirement | Project Status | Compatibility | |-------------------|----------------|---------------| | [Tech 1] | [Project tech] | [OK]/[!]/[X] |

# Integration Locations

| Type | Path | |------|------| | 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)

# This repository enforces npm via preinstall.
npm install <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 Command

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

/trellis:create-command use-<skill-name> Use <skill-name> skill following project guidelines

Common Skill Integration Reference

| Skill | Integration Target | Examples Directory | |-------|-------------------|-------------------| | frontend-design | frontend | examples/skills/frontend-design/ | | mcp-builder | backend | examples/skills/mcp-builder/ | | webapp-testing | frontend | examples/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

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/integrate-claude-skill-into-guidelines-msfn19k4/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/integrate-claude-skill-into-guidelines-msfn19k4' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/integrate-claude-skill-into-guidelines-msfn19k4/download' --output '.skill-downloads/integrate-claude-skill-into-guidelines-msfn19k4/SKILL.md.part' && mv '.skill-downloads/integrate-claude-skill-into-guidelines-msfn19k4/SKILL.md.part' '.skill-downloads/integrate-claude-skill-into-guidelines-msfn19k4/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

This file does not provide a usable name/description header for this native procedure. It remains available to download and inspect; use the manual method below.

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/integrate-claude-skill-into-guidelines-msfn19k4/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills