cs-trick

Archives verified programming patterns, library usages, and techniques into a searchable reference library.

Updated Jun 8, 2026
One-click install
npx skills add https://github.com/wildlily1021/XW_Software --skill cs-trick-wildlily1021
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: cs-trick
Source: https://github.com/wildlily1021/XW_Software/tree/main/.agents/skills/cs-trick
Command: npx skills add https://github.com/wildlily1021/XW_Software --skill cs-trick-wildlily1021

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Valuable coding patterns, library usage knowledge, and operational tricks discovered during development are easily forgotten or lost. This Skill captures them as structured, searchable prescriptive documents so the team can reuse proven solutions instead of rediscovering them. ## Core Features & Use Cases - Three Document Types: Classifies each entry as pattern (design/architecture idioms), library (framework API usage and pitfalls), or technique (commands and operational recipes). - Mandatory Code Investigation: Searches the repository for real code examples before drafting, ensuring every trick is grounded in actual project code rather than abstract descriptions. - Overlap Detection and Updates: Checks existing entries before creating new ones, supporting update and supersede workflows with dated frontmatter. - Use Case: After figuring out the correct way to handle Pinia store action errors, ask the assistant to record it; it investigates the codebase, drafts a structured trick document with real code examples, and archives it under codestable/compound/ for future retrieval. ## Quick Start Tell the assistant to record a trick about the library usage or pattern you just validated, and answer its follow-up questions about when it applies and why it works.

Frequently Asked Questions about cs-trick

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I document a reusable coding pattern for my team?▼

Describe the pattern to the assistant and it will classify it as pattern, library, or technique, investigate your codebase for real examples, and draft a structured document. After your review it archives the file under codestable/compound/ with searchable YAML frontmatter.

What is the difference between pattern, library, and technique document types?▼

Pattern covers design and architecture idioms like Repository or Builder usage. Library covers framework or package API usage and known pitfalls. Technique covers operational recipes like jq queries or git bisect workflows.

Can I update an existing trick document instead of creating a new one?▼

Yes. When your request mentions modifying an existing entry, the skill locates the original document, confirms which sections to change, re-verifies affected code, and writes back the update with an updated date field.

Does the skill require code examples from my repository?▼

Yes, codebase investigation is a mandatory phase. The skill searches for real usage of the pattern or library in your project and prefers actual project code over invented examples, noting explicitly when no in-project instance exists.

How do I search archived trick documents by framework or language?▼

Use the search-yaml.py tool with filters such as doc_type=trick, type=library, framework, language, or status. It supports keyword queries and JSON output for finding overlapping or related entries.