AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Hackmd Api

skill-eastsun5566-hackmd-skills-hackmd-api · by EastSun5566

Interact with HackMD API to create, update, list, and manage notes programmatically. Use when you need to create documentation in HackMD, sync content, or automate note management workflows.

No reviews yet
0 installs
40 views
0.0% view→install

Install

$ agentstack add skill-eastsun5566-hackmd-skills-hackmd-api

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-eastsun5566-hackmd-skills-hackmd-api)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Hackmd Api? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

HackMD API Integration

This skill enables AI agents to interact with the HackMD API to programmatically manage notes, create documentation, and automate collaborative workflows.

When to Use This Skill

Use this skill when you need to:

  • Create documentation automatically after completing a task or project
  • Sync content from code repositories to HackMD
  • Manage notes programmatically (create, update, list, delete)
  • Automate collaborative workflows like creating meeting notes or project documentation
  • Backup or migrate HackMD content

Prerequisites

Before using this skill, ensure:

  1. HackMD API Token: You must have a valid HackMD API token
  • Get one from: https://hackmd.io/settings#api
  • Set the environment variable: export HACKMD_API_TOKEN=your_token_here
  1. Node.js: The skill requires Node.js (v18 or later)
  1. Dependencies: Install the required packages:

``bash cd skills/hackmd-api/scripts npm install ``

Available Commands

The skill provides a CLI tool located at scripts/hackmd-cli.mjs with the following commands:

List Notes

List all your HackMD notes:

node scripts/hackmd-cli.mjs list-notes

Options:

  • --limit - Limit the number of notes returned (default: 10)

Create Note

Create a new HackMD note:

node scripts/hackmd-cli.mjs create-note --title "My Note" --content "# Hello\nThis is my note"

Options:

  • --title - Note title (required)
  • --content - Note content in Markdown (required)
  • --read-permission - Read permission: owner, signed_in, guest (default: owner)
  • --write-permission - Write permission: owner, signed_in, guest (default: owner)

Get Note

Retrieve a note's content and metadata:

node scripts/hackmd-cli.mjs get-note 

Update Note

Update an existing note:

node scripts/hackmd-cli.mjs update-note  --content "# Updated\nNew content"

Options:

  • --content - New note content (required)
  • --read-permission - Update read permission
  • --write-permission - Update write permission

Delete Note

Delete a note:

node scripts/hackmd-cli.mjs delete-note 

Usage Examples

Example 1: Create Project Documentation

When completing a project, automatically create documentation in HackMD:

````markdown

  1. Gather project information (overview, features, setup instructions)
  2. Format content using HackMD Flavored Markdown (use the hackmd skill for syntax)
  3. Create the note:

``bash node scripts/hackmd-cli.mjs create-note \ --title "Project X Documentation" \ --content "$(cat project-docs.md)" \ --read-permission signed_in ``

````

  1. The command will return the note URL for sharing

````

Example 2: Sync Code Documentation

Keep HackMD documentation in sync with code changes:

1. Generate documentation from code comments
2. Check if the note exists using list-notes
3. If exists, update it:
   ```bash
   node scripts/hackmd-cli.mjs update-note  \
     --content "$(cat updated-docs.md)"
````

4. If not, create a new note

````

### Example 3: Create Meeting Notes

Automatically create meeting notes:

```markdown
1. Prepare meeting agenda in Markdown format
2. Create the note with appropriate permissions:
   ```bash
   node scripts/hackmd-cli.mjs create-note \
     --title "Team Meeting - 2024-01-15" \
     --content "# Team Meeting\n\n## Agenda\n- Topic 1\n- Topic 2" \
     --read-permission signed_in \
     --write-permission signed_in
````

3. Share the URL with team members

````

## Error Handling

The CLI tool provides clear error messages:

- **Missing API token**: Set `HACKMD_API_TOKEN` environment variable
- **Invalid note ID**: Verify the note exists and you have access
- **Permission denied**: Check your API token has the necessary permissions
- **Network errors**: Verify internet connection and HackMD API status

## Integration with hackmd Skill

This skill works best in combination with the `hackmd` skill:

1. Use `hackmd` skill to **format content** with correct HackMD syntax (alerts, diagrams, embeds, etc.)
2. Use `hackmd-api` skill to **publish and manage** the formatted content

## API Reference

For detailed API documentation, see:
- [API_REFERENCE.md](references/API_REFERENCE.md)
- [HackMD API Documentation](https://hackmd.io/@hackmd-api/developer-portal)

## Security Notes

- **Never commit** your API token to version control
- Store tokens in environment variables or secure credential managers
- Use appropriate **read/write permissions** for sensitive content
- **Audit access** regularly through HackMD settings

## Troubleshooting

### Command not found

Ensure you're in the correct directory and Node.js is installed:

```bash
cd /path/to/hackmd-skills
node --version  # Should be v18 or later
````

### API Token Issues

Verify your token is set correctly:

```bash
echo $HACKMD_API_TOKEN  # Should display your token

Dependencies Missing

Install dependencies if you see module errors:

cd skills/hackmd-api/scripts
npm install

Contributing

Found an issue or have a suggestion? Please open an issue on the GitHub repository.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.