원클릭으로
orcanote-query
Guide for querying/searching data (blocks) in Orca Note.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Guide for querying/searching data (blocks) in Orca Note.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Create and edit Orca Note Flavored Markdown with callouts, highlights, Excalidraw based whiteboard, mermaid and other Orca Note-specific syntax. Use when inserting markdown into Orca Note, or when user mentions writing notes, callouts, highlights, Excalidraw, whiteboard, mermaid or Orca Note notes.
Guide for obtaining the date of a set of blocks in Orca Note, or a UNIX timestamp in seconds of now or today.
Guide for creating Excalidraw-based whiteboards in Orca Note. Use when user mentions whiteboard or Excalidraw.
Comprehensive guide for creating software diagrams using Mermaid syntax. Use when users need to create, visualize, or document software through diagrams including class diagrams (domain modeling, object-oriented design), sequence diagrams (application flows, API interactions, code execution), flowcharts (processes, algorithms, user journeys), entity relationship diagrams (database schemas), C4 architecture diagrams (system context, containers, components), state diagrams, git graphs, pie charts, gantt charts, or any other diagram type. Triggers include requests to "diagram", "visualize", "model", "map out", "show the flow", or when explaining system architecture, database design, code structure, or user/application flows.
Guide for creating and managing reminders in Orca Note. Use this skill when the user wants to set a reminder or schedule a task.
Guide for creating reusable templates in Orca Note with optional dynamic date and time variables.
| name | orcanote-query |
| description | Guide for querying/searching data (blocks) in Orca Note. |
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.
A query consists of a QueryDescription2 object, which contains a main query group q, sorting options, and pagination settings.
{
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
}
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. |
ANCESTOR_AND - Matches ancestors of blocks that match conditions.DESCENDANT_AND - Matches descendants of blocks that match conditions.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). |
Used in Journal queries and Block property filters (created/modified).
{"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){"t": 2, "v": 1640995200000} (Unix timestamp in milliseconds).
t: 2 (Absolute)v: Timestampop)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 |
Specified as an array of tuples: [field, direction].
_created, _modified, _text, _journal, _refcount."ASC" or "DESC".Example: [["_created", "DESC"], ["_text", "ASC"]]
page: Default is 1.pageSize: Default is 20.{
"q": {
"kind": 100,
"conditions": [
{ "kind": 4, "name": "Project A" },
{ "kind": 11, "completed": false }
]
}
}
{
"q": {
"kind": 100,
"conditions": [
{ "kind": 8, "text": "deadline" },
{
"kind": 9,
"created": { "op": 9, "value": { "t": 1, "v": -7, "u": "d" } }
}
]
},
"sort": [["_created", "DESC"]]
}
Find blocks containing "setup" that are children (or descendants, or parent, or ancestors) of blocks containing "environment".
{
"q": {
"kind": 100,
"conditions": [
{ "kind": 8, "text": "setup" },
{
"kind": 106,
"conditions": [{ "kind": 8, "text": "environment" }]
}
]
}
}