nextcloud-shares

nextcloud-shares is a skill for Claude Code, Codex from Knuckles-Team/nextcloud-agent. It costs 95 tokens per session (767 once invoked), scanned A, original, MIT.

A skill for managing Nextcloud sharing permissions through its sharing API.

In plain words
What is it for?
Use it to list shares, create public-link, user, or group shares for files and folders, and revoke existing shares.
Why use it?
It makes it easier to inspect access, grant sharing permissions, or remove them without using unrelated file-management actions.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/knuckles-team/nextcloud-agent/nextcloud-shares
Any agent
npx skills add Knuckles-Team/nextcloud-agent --skill nextcloud-shares
Clone the repo
git clone --depth 1 https://github.com/Knuckles-Team/nextcloud-agent

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for nextcloud-shares

README.md
[![agentmods](https://agentmods.dev/badge/skills/knuckles-team/nextcloud-agent/nextcloud-shares.svg)](https://agentmods.dev/skills/knuckles-team/nextcloud-agent/nextcloud-shares)
Your own site
<a href="https://agentmods.dev/skills/knuckles-team/nextcloud-agent/nextcloud-shares"><img src="https://agentmods.dev/badge/skills/knuckles-team/nextcloud-agent/nextcloud-shares.svg" alt="Measured on agentmods" height="20"></a>
Per session 95 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 767 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00095 $0.00767
Opus 5 $0.00048 $0.00383
Sonnet 5 $0.00019 $0.00153
Haiku 4.5 $0.00010 $0.00077

Measured 4d ago against content hash b8b913de056b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

nextcloud-shares scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

nextcloud_agent/skills/nextcloud-shares/SKILL.md · 82 lines

How it starts

The opening of the file, as written. The whole thing — 82 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Nextcloud Shares

Domain-typed access to the Nextcloud Sharing API (OCS files_sharing) for granting and auditing access to files and folders. Prefer the nextcloud_sharing tool over raw OCS calls — it carries the share-type/permission conventions.

When to use

  • List all current shares (audit who can access what).
  • Create a share on a path — public link, user, or group.
  • Revoke a share by id.

When NOT to use

  • Browse, read, upload, or move files → nextcloud-files.
  • Store file bytes/text in the knowledge graph → nextcloud-ingest.

Prerequisites & environment

Connect via the mcp-client skill against the nextcloud-agent MCP server.

Variable Required Notes
NEXTCLOUD_URL Base URL of the Nextcloud instance
NEXTCLOUD_USERNAME WebDAV/OCS user
NEXTCLOUD_PASSWORD Password or app password
TLS_PROFILE / TLS_PROFILE_REF optional AgentConfig transport profile; peer verification is mandatory

MCP_TOOL_MODE selects the condensed vs. verbose surface. SHARINGTOOL gates this tool category.

Tools & actions

Prefer the condensed tool; action + a params_json JSON string.

Condensed tool Actions
nextcloud_sharing list_shares, create_share, delete_share

Key parameters

  • path — server-relative path to share (create_share).
  • share_type3 = public link, 0 = user, 1 = group (default 3).
  • permissions — bitmask: 1 read, 2 update, 4 create, 8 delete, 16 share (default 1 = read-only).
  • share_id — required for delete_share.

Recipes (params_json)

List all shares:

{}

Create a read-only public link on a file:

{"path":"Documents/report.pdf","share_type":3,"permissions":1}

Revoke a share:

{"share_id":"42"}

Gotchas

  • params_json is a string of JSON, not an object — serialize it.
  • share_type and permissions are integers (OCS choice/bitmask values), not labels.
  • A public-link create_share returns the generated link url in its response — read it back rather than constructing it.

Read the full file on GitHub · 82 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 82 lines · 95 tokens per session scan A b8b913de056b

Subscribe to this mod's changes

nextcloud-shares is a skill published in the GitHub repository Knuckles-Team/nextcloud-agent (0 stars, last pushed 7d ago), licensed MIT. It adds 95 tokens to every session and 767 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

jellyfin-kg-ingestion

Natively ingest a Jellyfin library into the epistemic-graph knowledge graph via the jellyfin-mcp MCP server — push library items as typed :MediaAsset/:Book nodes with :hasGenre/:performedBy/:authoredBy links and item overviews as searchable :Document nodes (jellyfiningestlibrary), and item posters as content-addressed…

Knuckles-Team/jellyfin-mcp · 158 tokens

jellyfin-library-catalog

Browse and search a Jellyfin media library via the jellyfin-mcp MCP server — list library items (movies, series, episodes, audio, books), fetch one item by id, walk collections and user views, and run search hints with the domain-typed jellyfinlibrary tool. Use when the agent must find or enumerate catalog items…

Knuckles-Team/jellyfin-mcp · 154 tokens

jellyfin-media-playback

Stream and control Jellyfin playback and browse music via the jellyfin-mcp MCP server — list artists, albums, and music genres, resolve audio/video streams, manage playlists, and drive playstate (play, mark played, report progress) with the domain-typed jellyfinmedia tool. Use when the agent must start or control…

Knuckles-Team/jellyfin-mcp · 142 tokens

documentdb-collection-admin

Database, collection, and user administration on a DocumentDB (MongoDB-compatible, PostgreSQL-backed) server via the documentdb-mcp MCP server — list/create/drop/rename databases and collections, and manage database users and their roles. Use when the agent must provision or tear down namespaces, enumerate the…

Knuckles-Team/documentdb-mcp · 106 tokens

documentdb-document-crud

Document create/read/update/delete operations on a DocumentDB (MongoDB-compatible, PostgreSQL-backed) collection via the documentdb-mcp MCP server — insert one/many, find with filter/sort/skip/limit, update/replace one/many, delete, count, and the atomic find-and-modify variants. Use when the agent must read or mutate…

Knuckles-Team/documentdb-mcp · 126 tokens

documentdb-aggregation-analytics

Read-only analytics on a DocumentDB (MongoDB-compatible, PostgreSQL-backed) collection via the documentdb-mcp MCP server — run aggregation pipelines ($match/$group/$sort/…) and fetch distinct field values. Use when the agent must summarize, group, or profile documents rather than fetch individual rows. Do NOT use for…

Knuckles-Team/documentdb-mcp · 102 tokens