diff --git a/scripts/convert.sh b/scripts/convert.sh index eff95eae..1034d987 100755 --- a/scripts/convert.sh +++ b/scripts/convert.sh @@ -362,9 +362,9 @@ write_tool_readme() { update_step='Re-run `./scripts/convert.sh --tool opencode` and reinstall with `./scripts/install.sh --tool opencode --target `.' ;; augment) - format_line='Flat Augment rules: `rules/.md` with Augment frontmatter (`type: auto`, `description`).' - manual_install='Copy `integrations/augment/rules/*.md` into your project `.augment/rules/` directory.' - verify_step='Run `find .augment/rules -name "*.md" | wc -l` and check rules appear in Augment.' + format_line='Directory skill bundles: `skills//SKILL.md` with Augment-compatible SKILL frontmatter (`name`, `description`) plus copied support folders.' + manual_install='Copy each folder from `integrations/augment/skills//` to `.augment/skills//` in your project.' + verify_step='Run `find .augment/skills -name "SKILL.md" | wc -l` and verify skills are listed in Augment.' update_step='Re-run `./scripts/convert.sh --tool augment` and reinstall with `./scripts/install.sh --tool augment --target `.' ;; esac @@ -446,10 +446,10 @@ info "Found ${TOTAL_CANDIDATES} candidate skills" for t in $TOOLS; do rm -rf "${OUT_BASE}/${t}" mkdir -p "${OUT_BASE}/${t}" - if [[ "$t" == "cursor" || "$t" == "kilocode" || "$t" == "augment" ]]; then + if [[ "$t" == "cursor" || "$t" == "kilocode" ]]; then mkdir -p "${OUT_BASE}/${t}/rules" fi - if [[ "$t" == "windsurf" || "$t" == "opencode" ]]; then + if [[ "$t" == "windsurf" || "$t" == "opencode" || "$t" == "augment" ]]; then mkdir -p "${OUT_BASE}/${t}/skills" fi if [[ "$t" == "aider" ]]; then @@ -554,14 +554,16 @@ while IFS= read -r rel_path; do copy_supporting_dirs "$src_dir" "$out_dir" ;; augment) - out_file="${OUT_BASE}/augment/rules/${name}.md" + out_dir="${OUT_BASE}/augment/skills/${name}" + mkdir -p "$out_dir" { echo "---" - echo "type: auto" + echo "name: $(yaml_quote "$name")" echo "description: $(yaml_quote "$description")" echo "---" cat "$body_tmp" - } > "$out_file" + } > "${out_dir}/SKILL.md" + copy_supporting_dirs "$src_dir" "$out_dir" ;; *) err "Unhandled tool: ${t}" diff --git a/scripts/install.sh b/scripts/install.sh index f15bcf91..bdfed458 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -264,7 +264,7 @@ case "$TOOL" in install_skill_bundle_tool "opencode" ;; augment) - install_flat_rules_tool "augment" ".augment/rules" ".md" + install_skill_bundle_tool "augment" ;; *) err "Unhandled tool: ${TOOL}"