Skip to content

suyuan2022/suyuan-skill / get-biji

get-biji

Verified

Get 笔记(biji.com):把账号里的笔记同步成本地 Markdown 并检索;用 Get 的转写额度把视频、播客、本地音视频转成逐字稿。 触发:用户要同步或查 Get 笔记里的录音和笔记;给了抖音、小红书、B 站、小宇宙链接或本地音视频,要逐字稿。

FileKindSize
.gitignoreother245 B
SKILL.mdskill md6.3 KB
package-lock.jsonmanifest1.8 KB
package.jsonmanifest497 B
references/检索.mdmarkdown3.1 KB
scripts/api.jsscript9.7 KB
scripts/dedupe.jsscript2.8 KB
scripts/format.jsscript13.4 KB
scripts/link-transcript.jsscript12.3 KB
scripts/paths.jsscript1.9 KB
scripts/rebuild-state.jsscript1.6 KB
scripts/sync.jsscript8.3 KB

scripts/paths.js

View on GitHub
/**
 * 登录态、同步记录和笔记目录的设置都存在 skill 目录之外:重装或更新 skill 时,skill 目录会被整个换掉。
 * 位置:$GET_BIJI_HOME,默认 ~/.config/get-biji/
 */

const fs = require('fs');
const os = require('os');
const path = require('path');

const STATE_DIR = process.env.GET_BIJI_HOME || path.join(os.homedir(), '.config', 'get-biji');
const CONFIG_FILE = path.join(STATE_DIR, 'config.json');

const STATE_FILES = {
    authState: path.join(STATE_DIR, 'auth-state.json'),
    tokenCache: path.join(STATE_DIR, 'token-cache.json'),
    syncState: path.join(STATE_DIR, 'sync-state.json'),
    transcriptLedger: path.join(STATE_DIR, 'link-transcript-ids.json'),
};

function readState(file, fallback) {
    try {
        return JSON.parse(fs.readFileSync(file, 'utf8'));
    } catch {
        return fallback;
    }
}

function writeState(file, data) {
    fs.mkdirSync(STATE_DIR, { recursive: true, mode: 0o700 });
    fs.writeFileSync(file, JSON.stringify(data, null, 2), { encoding: 'utf8', mode: 0o600 });
}

/**
 * 笔记目录:带了 OUTPUT_DIR 就用它并记下来;没带就用上次记下的;都没有就报错,由 agent 去问用户。
 */
function resolveOutputDir() {
    const config = readState(CONFIG_FILE, {});
    let dir = process.env.OUTPUT_DIR;
    if (!dir) {
        if (config.outputDir) return config.outputDir;
        throw new Error(`No notes directory yet. Run once with OUTPUT_DIR="<absolute path>"; it is then remembered in ${CONFIG_FILE}`);
    }
    if (dir.startsWith('~/')) dir = path.join(os.homedir(), dir.slice(2));
    if (!path.isAbsolute(dir)) throw new Error(`OUTPUT_DIR must be an absolute path, got: ${dir}`);
    if (config.outputDir !== dir) writeState(CONFIG_FILE, { ...config, outputDir: dir });
    return dir;
}

module.exports = { STATE_DIR, CONFIG_FILE, STATE_FILES, readState, writeState, resolveOutputDir };
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall