orcanote-query
Guide for querying/searching data (blocks) in Orca Note.
Skill by sethyuan
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/sethyuan-orcanote-query
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: data, productivity
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/orcanote-query
What's inside
- Skill name
orcanote-query- Description
- Guide for querying/searching data (blocks) in Orca Note.
- License
- MIT
- Instructions
- 141 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Orca Note Querying
This skill provides guidance on how to query blocks in Orca Note using the `QueryDescription2` schema. This is used for advanced filtering, search, and data retrieval within repositories.
## Query Structure
A query consists of a `QueryDescription2` object, which contains a main query group `q`, sorting options, and pagination settings.
```typescript
{
q: QueryGroup2; // The main query criteria
sort?: [string, string][]; // e.g., [["_created", "DESC"]]
page?: number; // 1-based page number
pageSize?: number; // Number of items per page
randomSeed?: number; // For stable random sorting
}
```
## Query Groups (Logical Operators)
Groups combine multiple conditions. Every group has a `kind` and a `conditions` array.
| Kind | Name | Description |
| :--- | :--- | :--- |
| **100** | `SELF_AND` | All conditions in the array must match the block. |
| **101** | `SELF_OR` | At least one condition in the array must match the block. |
| **106** | `CHAIN_AND`| Matches blocks that have a match in their ancestors, descendants, or themselves. Often used within a `SELF_AND` group to filter results by hierarchy. |
### Hierarchy Groups
- **102**: `ANCESTOR_AND` - Matches ancestors of blocks that match conditions.
- **104**: `DESCENDANT_AND` - Matches descendants of blocks that match conditions.
## Condition Types
Each condition object must have a `kind` field.
| Kind | Type | Key Fields | description |
| :--- | :--- | :--- | :--- |
| **3** | **Journal** | `start`, `end` | Journal blocks within a specific journal date range. |
| **4** | **Tag** | `name`, `properties` | Blocks with a specific tag. Can filter by tag properties. |
| **6** | **Reference** | `blockId` | Blocks referencing a specific block ID. |
| **8** | **Text** | `text`, `raw` | Blocks containing specified text. |
| **9** | **Block** | `types`, `hasParent`, `hasChild`, `hasTags`, `created`, `modified` | Filter by block metadata and properties. |
| **11** | **Task** | `completed` | Specifically for task blocks. |
| **12** | **Block Match**| `blockId` | Match a specific block by its unique ID. |
| **13** | **Format** | `f`, `fa` | Match content fragments with specific markdown formats (e.g., bold, italic). |
## Dates (Relative & Absolute)
Used in Journal queries and Block property filters (created/modified).
- **Relative Date**: `{"t": 1, "v": -7, "u": "d"}` (e.g., 7 days ago).
- `t`: 1 (Relative)
- `v`: Numeric value (positive or negative)
- `u`: Unit (`s`, `m`, `h`, `d`, `w`, `M`, `y`)
- **Absolute Date**: `{"t": 2, "v": 1640995200000}` (Unix timestamp in milliseconds).
- `t`: 2 (Absolute)
- `v`: Timestamp
## Operators (`op`)
Used for property comparisons (tag properties, block metadata, etc.).
| Value | Operator | Description |
| :--- | :--- | :--- |
| **1** | `eq` | Equals |
| **2** | `noteq` | Not equals |
| **3** | `includes` | Includes (for strings or lists) |
| **4** | `notincludes` | Does not include |
| **5** | `has` | Has property/tag |
| **6** | `nothas` | Does not have |
| **7** | `gt` | Greater than |
| **8** | `lt` | Less than |
| **9** | `ge` | Greater than or equal |
| **10** | `le` | Less than or equal |
| **11** | `null` | Is null / empty |
| **12** | `notnull` | Is not null / not empty |
## Sorting & Pagination
### Sorting
Specified as an array of tuples: `[field, direction]`.
- **Fields**: `_created`, `_modified`, `_text`, `_journal`, `_refcount`.
- **Direction**: `"ASC"` or `"DESC"`.
Example: `[["_created", "DESC"], ["_text", "ASC"]]`
### Pagination
- `page`: Default is `1`.
- `pageSize`: Default is `20`.
## Example Queries
### 1. Incomplete tasks tagged with "Project A"
```json
{
"q": {
"kind": 100,
"conditions": [
{ "kind": 4, "name": "Project A" },
{ "kind": 11, "completed": false }
]
}
}
```
### 2. Blocks containing "deadline" created in the last 7 days
```json
{
"q": {
"kind": 100,
"conditions": [
{ "kind": 8, "text": "deadline" },
{
"kind": 9,
"created": { "op": 9, "value": { "t": 1, "v": -7, "u": "d" } }
}
]
},From sethyuan/orcanote-agent-skills, MIT.
More from sethyuan/orcanote-agent-skills
- 0.619score
orcanote-markdown
sethyuan
Create and edit Orca Note Flavored Markdown with callouts, highlights, Excalidraw based whiteboard, mermaid and other Orca Note-specific syntax.
SkillAFreshness: A★ 5Claude Code +9 - 0.619score
orcanote-reminder
sethyuan
Guide for creating and managing reminders in Orca Note.
SkillAFreshness: A★ 5Claude Code +9 - 0.469score
orcanote-mermaid
sethyuan
Comprehensive guide for creating software diagrams using Mermaid syntax.
SkillDFreshness: D★ 5Claude Code +9 - 0.463score
orcanote-whiteboard
sethyuan
Guide for creating Excalidraw-based whiteboards in Orca Note.
SkillDFreshness: D★ 5Claude Code +9 - 0.458score
orcanote-date
sethyuan
Guide for obtaining the date of a set of blocks in Orca Note, or a UNIX timestamp in seconds of now or today.
SkillDFreshness: D★ 5Claude Code +9 - 0.458score
orcanote-template
sethyuan
Guide for creating reusable templates in Orca Note with optional dynamic date and time variables.
SkillDFreshness: D★ 5Claude Code +9
Signals
- Stars
- 5
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Feb 8, 2026 (8 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from sethyuan
- 0.619score
orcanote-markdown
sethyuan
Create and edit Orca Note Flavored Markdown with callouts, highlights, Excalidraw based whiteboard, mermaid and other Orca Note-specific syntax.
SkillAFreshness: A★ 5Claude Code +9 - 0.619score
orcanote-reminder
sethyuan
Guide for creating and managing reminders in Orca Note.
SkillAFreshness: A★ 5Claude Code +9 - 0.469score
orcanote-mermaid
sethyuan
Comprehensive guide for creating software diagrams using Mermaid syntax.
SkillDFreshness: D★ 5Claude Code +9 - 0.463score
orcanote-whiteboard
sethyuan
Guide for creating Excalidraw-based whiteboards in Orca Note.
SkillDFreshness: D★ 5Claude Code +9 - 0.458score
orcanote-date
sethyuan
Guide for obtaining the date of a set of blocks in Orca Note, or a UNIX timestamp in seconds of now or today.
SkillDFreshness: D★ 5Claude Code +9 - 0.458score
orcanote-template
sethyuan
Guide for creating reusable templates in Orca Note with optional dynamic date and time variables.
SkillDFreshness: D★ 5Claude Code +9
Cite this page
orcanote-query skill. Agent Mart. https://agentmart.dev/skills/sethyuan-orcanote-query (last updated 2026-10-24)