Skip to content
Back to skills

Sort

ASecurity

This skill should be used when the user types "/sort", "/sort list", "/sort date_created desc", "/sort date_created desc, file_name asc", or "/sort default". It exposes Retriever's visible slash-command surface for sort inspection and changes.

  • 25 stars
  • 0 votes
  • 1 copy
  • 10 views
  • Added June 8, 2026
toolspythonbash

Security analysis

A100/100

Scanned June 8, 2026

npx -y skills add sdemyanov/retriever --skill sort --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Sort?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Sort
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sdemyanov-sort/badge)](https://www.skillsdirectory.com/skills/sdemyanov-sort)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: sort
description: >
  This skill should be used when the user types "/sort", "/sort list",
  "/sort date_created desc", "/sort date_created desc, file_name asc",
  or "/sort default". It exposes Retriever's visible slash-command surface for
  sort inspection and changes.
metadata:
  version: "1.1.17"
---

> Operates under `retriever:routing`. If the user's intent actually fits a different tier — another `retriever:*` skill, a Tier 2 slash, a Tier 3 `tools.py` subcommand, or (last resort) direct DB access — stop and re-route against the ladder before continuing.

# Retriever /sort

Use this skill for `/sort`, `/sort list`, `/sort <field> <asc|desc>`, `/sort <field> <asc|desc>, <field> <asc|desc>`, and `/sort default`.

## Read-only fast path

For the exact read-only forms `/sort` and `/sort list`:

- Do not read [../search/SKILL.md](../search/SKILL.md).
- Do not read schema docs.
- Run exactly one Bash command from the workspace root:
  - `/sort`: `python3 skills/tool-template/tools.py slash . /sort`
  - `/sort list`: `python3 skills/tool-template/tools.py slash . /sort list`
- If canonical tool auto-discovery fails, retry once with `RETRIEVER_CANONICAL_TOOL_PATH` pointed at [../tool-template/tools.py](../tool-template/tools.py).
- Return stdout exactly as the entire response. No preamble. No commentary. No reformatting.

## Other forms

For `/sort <field> <asc|desc>`, comma-separated multi-column sort specs, and `/sort default`:

1. Read [../search/SKILL.md](../search/SKILL.md).
2. Read [../schema/schema.md](../schema/schema.md) only if sortable field names are unclear.
3. Treat this skill as the slash command `/sort`.
4. Preserve comma-separated sort specs exactly as written; do not collapse them to a single column.
5. Return only the resulting Retriever state or table output. Do not add a preamble, trailing summary, or follow-up suggestion.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.