
langgenius/dify
5 skills13.7k installs752k starsGitHub
Install
npx skills add https://github.com/langgenius/difySkills in this repo
1Frontend Code ReviewTrigger when the user requests a review of frontend files (e.g., `.tsx`, `.ts`, `.js`). Support both pending-change reviews and focused file reviews while applying the checklist rules. --- name: frontend-code-review description: "Trigger when the user requests a review of frontend files (e.g., `.tsx`, `.ts`, `.js`). Support both pending-change reviews and focused file reviews while applying the checklist rules." --- # Frontend Code Review ## Intent Use this skill whenever the user asks to review frontend code (especially `.tsx`, `.ts`, or `.js` files). **Pending-change review** - inspect staged/working-tree files slated for commit and flag checklist violations before submission. **File-targeted review** - review the specific file(s) the user names and report the relevant checklist findings. Stick to the checklist below for every applicable file and mode. ## Checklist See [references/code-quality.md](references/code-quality.md), [references/performance.md](references/performance.md), [references/business-logic.md](references/business-logic.md) for the living checklist split by category - treat it as the canonical set of rules to follow.9kinstalls2Frontend Testingfrontend-testing is a Codex-oriented Dify skill for generating Vitest and React Testing Library tests for components, hooks, and utilities across the web codebase. It is derived from the authoritative web/docs/test.md and mandates Vitest mock and timer APIs via vi.* instead of ad-hoc jest patterns. The skill triggers on testing, spec files, coverage, Vitest, RTL, unit tests, integration tests, and write or review test requests while excluding backend pytest and Cucumber Playwright E2E under e2e/. Test files use ComponentName.spec.tsx inside sibling __tests__ directories mapped from source paths such as foo/index.tsx to foo/__tests__/index.spec.tsx. Required describe blocks cover Rendering, Props, User Interactions, and Edge Cases with vi.clearAllMocks in beforeEach. External dependencies mock via vi.mock while project components import real modules. Commands run from web/ with pnpm test, watch mode, coverage, and pnpm analyze-component for complexity review. Developers reach for frontend-testing when adding or reviewing Dify frontend tests and need repo-specific conventions rather than generic React Testing Library advice.3.1kinstalls3Backend Code ReviewThe backend-code-review skill is designed for review Dify backend Python code for architecture, security, and API conventions. Backend Code Review When to use this skill Use this skill whenever the user asks to review, analyze, or improve backend code (e.g., .py) under the api/ directory. Supports the following review modes: Pending-change review: when the user asks to review current changes (inspect staged/working-tree files slated for commit to get the changes). Invoke when the user reviews Dify backend code, APIs, or Python service changes.1.5kinstalls4E2e Cucumber Playwrighte2e-cucumber-playwright is a Claude Code skill for ai & agent building. It helps solo builders move faster with AI-assisted development.83installs5How To Write Componenthow-to-write-component is a Claude Code skill for ai & agent building. It helps solo builders move faster with AI-assisted development.69installs