Skip to content

Commit bf73672

Browse files
authored
Merge pull request #96 from popey/improve/skill-review-optimization
feat: improve hackmd-cli skill score to 100%
2 parents bfa9bd0 + f7a3d62 commit bf73672

2 files changed

Lines changed: 15 additions & 2 deletions

File tree

hackmd-cli.skill

204 Bytes
Binary file not shown.

hackmd-cli/SKILL.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,11 +210,14 @@ All list commands support:
210210
### Sync local file to HackMD
211211

212212
```bash
213-
# Create new note from file
213+
# Create new note from file and verify
214214
cat doc.md | hackmd-cli notes create --title="My Doc"
215+
# Confirm creation by retrieving the note
216+
hackmd-cli notes --filter=title="My Doc"
215217

216-
# Update existing note from file
218+
# Update existing note from file and verify
217219
cat doc.md | hackmd-cli notes update --noteId=<id>
220+
hackmd-cli export --noteId=<id> | head -5
218221
```
219222

220223
### Create a folder and put a note inside it
@@ -261,3 +264,13 @@ hackmd-cli notes --output=json | jq '.[] | .id'
261264
```bash
262265
hackmd-cli notes --filter=title=README
263266
```
267+
268+
## Error Handling
269+
270+
Common errors and fixes:
271+
272+
| Error | Cause | Fix |
273+
|-------|-------|-----|
274+
| `Unauthorized` | Invalid or expired token | Re-run `hackmd-cli login` or update `HMD_API_ACCESS_TOKEN` |
275+
| `Not Found` | Wrong `noteId` or `teamPath` | Verify the ID with `hackmd-cli notes` or `hackmd-cli teams` |
276+
| `Forbidden` | Insufficient permissions | Check note permissions with `hackmd-cli notes --noteId=<id> -x` |

0 commit comments

Comments
 (0)