xun404/dify-agent-skill-plugin

A Dify plugin that provides an intelligent agent strategy with support for multiple specialized skills. Inspired by Claude Code Skills and OpenAI Agents Codex Tool concepts.

โ˜… 13Forks 5PythonGitHub โ†—Compare

README

Agent Skill Plugin

Overview

Agent Skill Plugin is an intelligent agent strategy plugin for the Dify platform that dynamically activates specialized skills based on user queries. Inspired by Claude Code Skills and OpenAI Agents Codex Tool concepts.

โœจ Core Features

Feature Description
๐ŸŽฏ Multi-Skill Architecture Load and manage multiple specialized skills
๐Ÿ” Smart Matching Automatically activate relevant skills based on keywords
๐Ÿ› ๏ธ Tool Integration Seamlessly integrates with Dify's built-in tools
๐Ÿ“ Easy Creation Support SKILL.md files and YAML configuration
๐Ÿ”„ Streaming Responses Real-time streaming output with debug logging

๐Ÿงฐ Built-in Skills

1. Code Helper

Assists with programming and code-related tasks:

  • ๐Ÿ“– Code Explanation - Break down complex logic
  • ๐Ÿ”ง Refactoring - Apply SOLID principles
  • ๐Ÿ› Debugging - Analyze errors and provide fixes
  • โšก Optimization - Identify bottlenecks

Triggers: explain code, refactor, optimize, code review, debug, fix bug, code


2. Documentation Helper

Creates comprehensive documentation:

  • ๐Ÿ“„ README Generation - Complete project docs
  • ๐ŸŒ API Documentation - Endpoints, parameters, examples
  • ๐Ÿ’ฌ Code Comments - Multi-format docstrings
  • โœ๏ธ Technical Writing - Clear, structured content

Triggers: document, readme, api docs, docstring, jsdoc


3. Testing Helper

Generates tests and improves coverage:

  • ๐Ÿงช Unit Tests - AAA pattern, edge cases
  • ๐Ÿ”— Integration Tests - Component interaction testing
  • ๐ŸŽญ Mocking & Stubbing - Dependency isolation
  • ๐Ÿ“Š Coverage Analysis - Identify untested paths

Triggers: test, unit test, integration test, mock, coverage, pytest, jest


โš™๏ธ Configuration Parameters

Parameter Type Required Default Description
model model-selector โœ… - LLM model to use
tools array[tools] โŒ - External tools available
query string โœ… - User query to process
enabled_skills string โŒ "all" Comma-separated skill names
custom_skills string โŒ - YAML-formatted custom skills
debug_mode boolean โŒ false Enable debug logging
maximum_iterations number โœ… 10 Max tool call iterations

๐Ÿ“ฆ Custom Skills

Define custom skills using YAML format in Dify interface:

- name: translation-helper
  description: Helps translate text between languages
  triggers:
    - translate
    - translation
  priority: 5
  category: language
  instructions: |
    # Translation Helper
    
    When translating:
    1. Identify source and target languages
    2. Provide accurate translations
    3. Explain nuances or alternatives

๐Ÿš€ Getting Started

  1. Install the plugin in your Dify workspace
  2. Create a new Agent application
  3. Select "Skill-based Agent" as the agent strategy
  4. Configure model and tools
  5. Start chatting - skills activate automatically!

๐Ÿ”‘ Requirements

  • Model: An LLM model configured in the Agent application (required, no built-in credentials)
  • Tools (optional): Any Dify tools you want the agent to call (e.g. built-in tools, API tools)
  • Network: The plugin only communicates with your configured LLM provider and the tools you enable; it makes no other external calls
  • No API keys required: The plugin itself has no credentials to configure

๐Ÿ“ฆ Source Repository

https://github.com/xun404/dify-agent-skill-plugin

๐Ÿ“š Documentation


License

MIT License

Contributing

Contributions are welcome! Please see Development Guide for details.

Contributors

xun404

Issues