build

📁 helincao/skilled 📅 11 days ago
4
总安装量
4
周安装量
#49800
全站排名
安装命令
npx skills add https://github.com/helincao/skilled --skill build

Agent 安装分布

opencode 4
claude-code 4
github-copilot 4
codex 4
kimi-cli 4
gemini-cli 4

Skill 文档

Build

Inputs

  • Project root containing src/, _partials/, and site.config.json
  • Optional precompiled CSS at src/css/site.css
  • SKILL_DIR: directory containing this SKILL.md

Steps

  1. Resolve:
    1. PROJECT_ROOT: target user project root
    2. SKILL_DIR: directory containing this SKILL.md
  2. Run:
    node "$SKILL_DIR/scripts/build.mjs" --project-root "$PROJECT_ROOT"
    
  3. Confirm dist/ exists and contains built HTML files.
  4. If this skill is called by another skill workflow, fail fast on build errors and return the exact error text.

Output

  • dist/ refreshed from src/
  • Header/footer partials injected in built HTML files
  • SEO/canonical/Open Graph metadata injected from <!-- meta --> blocks
  • dist/sitemap.xml and dist/robots.txt regenerated

Conventions

  • Treat this as deterministic infrastructure: do not invent content here.
  • Do not assume the user project has package.json scripts.