mirror of
https://github.com/AceDataCloud/Skills.git
synced 2026-09-14 20:06:53 +08:00
83593f2062
- Extract shared auth, async-tasks, and MCP-servers content into skills/_shared/ reference files (~300 lines of duplication removed from each of the 19 SKILL.md files) - Replace .agents/skills/ and .github/skills/ copied directories with symlinks to skills/, eliminating 38 duplicate files - Delete sync.yml workflow that created noise commits on every push - Update validate.yml, CLI, index.js, and publish-clawhub.sh to skip _shared directory - Update template, README, and copilot-instructions for new structure Net: -6,353 lines removed, +115 lines added across 65 files. Co-authored-by: Ace Data Cloud Dev <dev@acedata.cloud> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
14 lines
423 B
JavaScript
14 lines
423 B
JavaScript
import { readdirSync } from "fs";
|
|
import { resolve, dirname } from "path";
|
|
import { fileURLToPath } from "url";
|
|
|
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
const skillsDir = resolve(__dirname, "skills");
|
|
|
|
export const skills = readdirSync(skillsDir, { withFileTypes: true })
|
|
.filter((d) => d.isDirectory() && !d.name.startsWith("_"))
|
|
.map((d) => d.name)
|
|
.sort();
|
|
|
|
export const skillsPath = skillsDir;
|