Repository navigation
fix: make each skill self-contained for npx skills and gh skill - #4
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Reject links that are not notes, non-hackmd.io hosts, and bad input instead of returning a fake id; resolve short ids and /s/ URLs through the CLI - Resolve permalinks to the internal id before updates - Mention team-folders create for team destinations - Truncate the conflict diff correctly in safe-sync.sh - Replace HACKMD_API_TOKEN in the visualize-hmd README Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Sync the hardened resolve-note.sh and safe-sync.sh into each skill - Reject unknown arguments in sync-shared.sh - Point safe-sync.sh at references/contract.md - Name related skills instead of linking outside the skill directory Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Skip the token question when hackmd-cli whoami succeeds - Read the new note id with .[0].id and avoid duplicate creates - Verify permissions and folder placement with api call GetNote/GetTeamNote - Treat visualize-hmd as optional and drop the missing hackmd-cli.mdc reference Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
EastSun5566
changed the base branch from
fix/cli-first-push-to-hackmd
to
main
November 27, 2026 14:36
…ills # Conflicts: # push-to-hackmd/SKILL.md # shared/README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
npx skills addandgh skill installcopy only the skill directory, so the../../shared/...links and scripts broke after install. For example,push-to-hackmdcould not findsafe-sync.sh.Following the approach in anthropics/skills, each skill now carries its own copy of the shared files:
shared/stays the single source. The oldshared/README.mdcontract moves toshared/references/contract.md, so its links also work from inside a skill.scripts/sync-shared.shcopies the files into each skill'sscripts/andreferences/.--checkfails if a copy differs fromshared/, and the newCheck shared filesworkflow runs it.scripts/safe-sync.sh.visualize-hmdalso had the outdatedHACKMD_API_TOKENvariable, which is fixed here.Checked: no broken relative links inside a single installed skill. After
npx skills add <this branch> --skill push-to-hackmd,scripts/resolve-note.shruns from the installed copy.Stacked on #3.
🤖 Generated with Claude Code