SKILL.md
OpenDocs ships a public SKILL.md
file specifically so agents can use the product correctly without you repeating
the workflow every time.
If your tool supports skills, repo instructions, task guides, or reusable system docs, start here.
What it does
The file teaches an agent:
- which CLI commands exist
- how to authenticate with an OpenDocs API key
- how to publish a Markdown file and return the final URL
- how to update, list, pull, and unpublish posts
- how to handle visibility safely
- why
--jsonis preferred for machine workflows
Why it matters
Without a reusable instruction file, agents tend to improvise:
- they may forget to install the CLI
- they may omit
--json - they may guess the wrong visibility behavior
- they may not understand how to find a
postIdbefore updating
SKILL.md removes those rough edges and makes OpenDocs feel like part of the
agent's normal toolchain.
Recommended usage
- Keep the OpenDocs
SKILL.mdURL handy:
https://github.com/opendocs-cc/opendocs/blob/main/SKILL.md
- Point your agent or framework at that file.
- Ask the agent to write a Markdown file and publish it.
- Have the agent return the resulting URL.
Example instruction
Use the OpenDocs SKILL.md workflow for publishing Markdown. If you generate a
doc, publish it and return the final URL.
What the skill covers today
The skill matches the current public CLI:
opendocs loginopendocs publishopendocs updateopendocs listopendocs getopendocs pullopendocs unpublishopendocs whoamiopendocs logout
When to skip it
You can skip SKILL.md if:
- you are publishing manually from your own shell
- your automation is calling the HTTP API directly
- your tool does not support instruction files and you prefer to script the CLI yourself
In those cases, use the CLI quickstart or the API reference.
Best practices
- Keep your prompts explicit about writing Markdown and publishing it.
- Prefer workspace visibility unless you truly need a public link.
- Ask the agent to return both the final URL and the local file path it published.
- Use
--jsonwhenever the agent needs to parse the result.