소스 정보
- 저장소
- KunanonJ/ai-skills-hub
- 최근 소스 활동
- 2026년 7월 10일 16:00
- 감지된 SKILL.md 언어
- 영어
- 스타
- 4
- 포크
- 1
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/KunanonJ/ai-skills-hub --skill aside-notion명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | aside-notion |
| description | Read this skill when you need to use Notion. Don't have to open a browser tab. |
| metadata | {"version":"0.1.0"} |
Use the notion global in the REPL tool. It extracts token_v2 from the logged-in Notion browser session — no tab navigation needed.
// If multiple Notion accounts/workspaces may be logged in, inspect and select explicitly.
console.log(await notion.listAccounts());
// Get an initialized NotionClient (cached per Chrome profile).
// IMPORTANT: Use const so you can reuse the client across REPL calls.
const _notion = await notion.getClient({
email: 'you@example.com',
workspaceName: 'Corca',
});
// Current user info
console.log(_notion.currentUser.email, _notion.currentUser.fullName);
console.log('Space:', _notion.currentSpace.get('name'));
console.log('Plan:', _notion.currentSpace.get('subscription_tier'));
// Search pages
const results = await _notion.search({ query: 'meeting notes', isNavigableOnly: true, limit: 10 });
for (const block of results) {
console.log(block.id, block.get('type'), block.title);
}
// Get a page by URL or ID
const page = await _notion.getBlock('https://www.notion.so/myorg/My-Page-abc123');
console.log(page.title);
// Read page as markdown (fast, local conversion, no API call)
console.log(blockToMarkdown(page));
// Append markdown to a page
await page.children.addFromMarkdown(`
## Agent update
- [x] searched the workspace
- [x] appended a section
`);
// Create a child page
const child = await page.children.addNew('page', { title: 'New Sub-page' });
await child.children.addFromMarkdown('# Hello\n\nContent here.');
// Update page title
await page.set('properties.title', [['Updated Title']]);
// Always assign to a const for reuse across REPL calls
const _notion = await notion.getClient();
The returned client is NotionClient from @aside/notion — a full-featured Notion internal API client. All operations below use this client.
If the token expires or you switch accounts:
notion.invalidateCache();
const refreshedNotion = await notion.getClient();
The client initializes with the first user/workspace found. If the task depends on a specific account or workspace, list accounts first and pass explicit selectors to getClient.
const accounts = await notion.listAccounts();
console.log(accounts);
const client = await notion.getClient({
email: 'other@email.com',
workspaceName: 'Corca',
});
// Basic search
const results = await _notion.search({ query: 'project plan', limit: 20 });
// Pages only (skip inline blocks)
const pages = await _notion.search({
query: 'project',
isNavigableOnly: true,
excludeTemplates: true,
sort: { field: 'lastEdited' }, // 'relevance' | 'lastEdited' | 'created'
});
// Search within a parent page
const childIds = await _notion.searchPagesWithParent(parentPageId, 'query');
Search results are Block[] — already cached, ready to mutate.
const page = await _notion.getBlock(pageIdOrUrl);
// Page metadata
console.log(page.title);
console.log(page.get('type'));
// Read children
for (const child of page.children) {
console.log(child.get('type'), child.title);
}
// Export as markdown (fast local conversion, no API call)
console.log(blockToMarkdown(page));
Before creating pages or uploading files, verify the target workspace:
console.log(_notion.currentSpace.get('name'), _notion.currentSpace.get('subscription_tier'));
console.log(_notion.currentSpace.get('settings.reach_block_limit_time'));
If the current workspace is free or block-limited and the user asked for a subscribed/team workspace, switch to the correct workspace before writing.
await page.children.addNew('text', { title: 'A paragraph' });
await page.children.addNew('to_do', { title: 'Ship it', checked: false });
await page.children.addNew('bulleted_list', { title: 'List item' });
await page.children.addFromMarkdown(`
# Summary
- write docs
- [x] port search API
> keep the API minimal
\`\`\`ts
console.log('ship it')
\`\`\`
`);
Supported: headings, paragraphs, bullet/numbered lists, to-dos, quotes, code blocks, dividers, nested lists. Inline: bold, italic, strike, code, links, $$equations$$.
const parent = await _notion.getBlock(parentPageId);
const child = await parent.children.addNew('page', { title: 'Design Doc' });
await child.children.addFromMarkdown('# Goals\n\n- keep scope tight');
await page.set('properties.title', [['New Title']]);
await _notion.runInTransaction(async () => {
await page.set('properties.title', [['Updated']]);
await page.children.addNew('text', { title: 'Note 1' });
await page.children.addNew('text', { title: 'Note 2' });
});
// Get a database view by URL
const view = await _notion.getCollectionView('https://www.notion.so/myorg/8511b9fc?v=8dee2a54');
const collection = view.collection;
// List rows
const rows = await collection.getRows();
for (const row of rows.toArray()) {
console.log(await row.getProp('Name'), await row.getProp('Status'));
}
// Add a row
const newRow = await collection.addRow({
Name: 'New task',
Status: 'In Progress',
'Due Date': { start: new Date('2026-05-01') },
});
// Query with filters
const query = view.buildQuery({
filter: {
filters: [{
property: 'Status',
filter: { operator: 'enum_is', value: { type: 'exact', value: 'Done' } },
}],
: ,
},
: [{ : , : }],
});
result = query.();
// Soft-delete
await page.remove();
// Hard-delete
await page.remove(true);
// Move
await myBlock.moveTo(targetBlock, 'after'); // 'before' | 'after' | 'first-child' | 'last-child'
When working with file/image uploads, never print signedPutUrl, signedGetUrl, upload plans, or temporary signed response files. Log only counts, booleans, block IDs, and final Notion page URLs.
await page.set('format.block_locked', true); // lock
await page.set('format.block_locked', false); // unlock
// Search returns Block[] — each has:
block.id; // UUID
block.get('type'); // 'page', 'text', 'to_do', etc.
block.title; // markdown string (pages, text blocks)
block.children; // child blocks
// Database row properties via typed accessors:
await row.getProp('Name'); // string
await row.getProp('Status'); // string | null (select)
await row.getProp('Tags'); // string[] (multi_select)
await row.getProp('Done'); // boolean (checkbox)
await row.getProp('Due Date'); // NotionDate | null
await row.getProp('Owner'); // User[]
await on async methods — getClient(), getBlock(), search(), getProp(), set(), addNew(), remove(), and moveTo() are all async.markdownToNotion() for block trees — that's for inline rich text only. Use addFromMarkdown() for block content.page.title = '# Heading\nBody' is wrong. Set title separately, strip a matching leading # H1 from body markdown when needed, then append body via page.children.const _notion = ..., you re-initialize every REPL call.currentSpace.get('subscription_tier') and block-limit settings before writing.