Use whenever the user mentions slashdocs (formerly aidocs), a slashdocs or aidocs URL, a slashdocs document/folder/comment/share/version, or asks to publish, review, open, or update a long-form artifact in slashdocs.
429 stars
0 votes
0 copies
1 view
Added October 13, 2026
ai-agentsgobashapi
Works with
cli
api
mcp
Security analysis
D50/100
criticalPipes output to a shell interpreter
criticalDownloads and executes remote scripts — classic supply chain attack
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Slashdocs?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/razorpay-slashdocs)
---
name: slashdocs
description: Use whenever the user mentions slashdocs (formerly aidocs), a slashdocs or aidocs URL, a slashdocs document/folder/comment/share/version, or asks to publish, review, open, or update a long-form artifact in slashdocs.
---
# slashdocs
slashdocs was formerly named aidocs. Treat an aidocs URL, document, or command
as a slashdocs one: old aidocs links still work, and the `aidocs` CLI is now
`slashdocs`.
Use this skill for **any slashdocs-related task**. If the user mentions slashdocs or
points at a slashdocs asset, use the `slashdocs` CLI to inspect or act on it. If given a slashdocs document URL, don't try to curl or web fetch it. Use the slashdocs cli.
## First rule: read the guidelines before authoring
Before writing or publishing a slashdocs document in a session, run:
```bash
slashdocs guidelines
```
Treat that command as the source of truth for authoring constraints (single-file
HTML, images/assets, theme integration, and publishing examples). Read the CLI
output and follow it.
## Common workflows
### Existing slashdocs asset
When the user asks about an existing slashdocs document, folder, comment, share,
version, or URL:
1. Use `slashdocs --help` and the relevant subcommand help to discover exact syntax.
2. Use the CLI to inspect the asset (`docs show`, `docs versions`, `docs pull`,
`docs comments`, `folders`, `open`, etc. as appropriate).
3. Perform the requested action through the CLI.
4. Return the important CLI result or URL to the user.
### New long-form artifact
When the user wants a report, RCA, postmortem, spec, review, analysis, launch
plan, findings doc, or other long-form artifact and has not specified another
format:
1. Run `slashdocs guidelines` if you have not already done so in this session.
2. Write the artifact as a single HTML file that follows those guidelines.
3. Save it locally (for example `report.html`).
4. Use `slashdocs docs --help` and `slashdocs docs create --help` to confirm current
syntax.
5. Publish with the CLI. To put the document in a folder, add
`--folder-id fld_123`, so that it is never at the root.
6. Return the printed slashdocs document URL.
7. If the `ai-sessions` skill is installed, use it and follow its guidance to
link this session to the document.
### Updating an existing document
If the user is iterating on an existing slashdocs document, push a new version
instead of creating a duplicate. Use the CLI help to find the current push/update
syntax and include a short summary of what changed. Write one change per line;
the document's history shows a multi-line summary as a list. Pull the
document with `slashdocs docs pull <id> --out <file>` before you edit it, and
push that file: the CLI records which state of the document the file holds
(its version and seq), and the push sends it. A push of a file with no
recorded state is refused. People with the editor role also edit the document
live in the browser (words, paragraphs, lists, bold, italic and links), several
at once. When they changed other text after your pull, the server merges your
push with their edits, and the CLI writes the merged version into your file.
When they changed the same text, the push is refused and their text stays:
pull again, and make your change again. A browser edit
changes only the HTML of the element that the person edited. Text that a script
shows can change in the browser only when it is exactly one string in an inline
script or in a `<script type="application/json">` block. Thus, keep text that
people may fix in the HTML or in such one-string values, not in strings that
code builds.
For changes to existing text, such as a fixed number, a reworded sentence, or
a few addressed comments, use `slashdocs docs edit` (MCP: `edit_document`)
instead of pushing the whole file. It sends only exact find-and-replace pairs,
so it is fast, leaves the rest of the document byte-for-byte unchanged, and
keeps comments elsewhere anchored. Each old string must occur exactly once in
the current HTML; add surrounding text to make it unique, or pass `--all`
(MCP: `replace_all`) when every occurrence should change, such as a renamed
term. If one does not match, nothing is saved. Push the whole file
only for restructuring or large rewrites.
### Comments
A comment is on exact text (`docs comments create --quote`, MCP:
`create_comment`) or on a spot in an element, such as a chart, a diagram or an
image (`docs comments create --target --x --y`, MCP: `create_point_comment`).
The target is the element's id or `data-slashdocs-target` value, and x and y
are fractions of its box: 0 to 1 inside it, and below 0 or above 1 beside it,
from -1000 to 1000 in all. To keep a point comment when the target
changes, pass the start of the element's text as `--quote`, and a short
`--label` for comment lists. `docs comments list` names the element of each
point comment with `pin=`. A point whose element is gone in a later version
has the placement status `moved`, and viewers show it at its old spot in the
page.
### Waiting for a review
Right after you publish for review, run `slashdocs docs wait <doc_id>`, in the
background if your tool has a time limit. It returns the open threads with new
messages when the reviewer stops writing for 2 minutes, and an approval or a
rejection at once. Change the document or answer in each thread, reply in each
thread with what you did, push, and run `wait` again. Each wait gives only
feedback that is new to you, and never your own replies. Stop when the
document is approved, or when the person tells you to stop.
### Approvals
For a formal sign-off, use the approval workflow, not state that the
document keeps itself. Run `slashdocs guidelines review approvals` for the
rules. The owner asks for approval with `slashdocs docs approvers add <doc_id>
--to <email>`, and `slashdocs docs approvals list <doc_id>` shows the
decisions. An approver decides with `slashdocs docs approve` or
`slashdocs docs reject`. A version with changed content asks the approvers
again. While other people type in the document, the server refuses a
decision: decide when they are done.
### Searching and labels
Use the same Slack-style search language as the web application:
```bash
slashdocs docs list 'incident from:alice@example.com label:api,review in:"Product Specs"'
slashdocs docs list 'rollout -draft from:me after:last week' --json
```
Every word must appear in the title or the text of the latest version.
Documents with the words in the title come first, then the latest. A word
also matches longer words that start with it. `"quoted text"` matches the words in order, and `-word`
excludes documents that contain the word. `title:word` (or
`title:"a phrase"`) matches in the title only. `from:` (an email, the name
before the @, or `me`), `in:` (a folder or any folder above the document),
`label:`, `before:`, `after:`, `on:`, and `during:` narrow the results. Repeat
`from:` or `in:` to match any of the values. A date is a day (`25-09-26`,
`5 september`, `monday`, `today`, `3 days ago`), a week, a month, or a year
(`last week`, `september`, `this year`, `2026`), or `last 7 days`, in UTC.
Search reads the first 256 KiB of the text of a document (about 40,000
words), and a `"quoted text"` phrase matches in the first 16,383 words only.
To make all of a longer document searchable, divide it into documents.
A list shows 25 documents, and `--limit` shows up to 100. When the JSON has
`"has_more": true`, more documents follow: `--offset` skips the documents that
you have, for example `--offset 25` for the second page of 25.
Manage labels directly from the CLI, or with the MCP `set_document_labels`
tool:
```bash
slashdocs docs labels list doc_123
slashdocs docs labels set doc_123 api review-ready
slashdocs docs labels clear doc_123
```
## Local documents (`--local`)
`--local` runs a command against slashdocs local, a limited version of
slashdocs on this computer. It needs no server or login, and it starts by
itself the first time:
```bash
slashdocs --local docs create report.html --title "Q3 plan"
slashdocs --local docs comments list report.html
```
Use `--local` only when the user asks for local documents, or when the user
has no slashdocs server and wants to try slashdocs. A local document ID is its
path in the documents folder (default `~/slashdocs`). Local documents support
comments, but not sharing, version history, full-text search, labels, or
notifications.
When the user wants to share a document or get reviews from the team, tell
them that a slashdocs server does this, and publish there if they have one.
## MCP server (optional)
The slashdocs application server exposes MCP directly over Streamable HTTP at:
```bash
https://<your-slashdocs-host>/mcp
```
Connect the URL from the MCP client; no slashdocs CLI installation or local MCP
process is required. Interactive clients authenticate through the server's
browser flow. Headless clients can use a service-account bearer key created in
the slashdocs web application. If the remote slashdocs MCP tools are already available
in your session, prefer them; otherwise use the CLI commands described above.
## Authentication and setup
Assume the user installed slashdocs and the bundled skill via the server's
`curl ... | sh` installer. If the CLI reports that auth is missing or expired,
run `slashdocs auth login` (include the server URL if the current context requires
it), then retry the requested CLI action. If login cannot be completed in the
environment, explain that clearly and ask the user to authenticate.
## When not to publish
Do not publish to slashdocs if the user explicitly asks for Markdown, plain text, a
PDF, inline chat only, or another destination. If they mention slashdocs while asking
for one of those formats, still use the CLI when relevant to inspect or reference
the slashdocs asset, but respect the requested output format.