Skip to content

Instantly share code, notes, and snippets.

View sorrycc's full-sized avatar
🌻
Working on Neovate Code

chencheng (云谦) sorrycc

🌻
Working on Neovate Code
View GitHub Profile
@sorrycc
sorrycc / loop.txt
Created March 7, 2026 14:31
/loop command implementation analysis in Claude Code 2.1.71
/loop — Detailed Implementation in versions/2.1.71/cli.js
Overview
/loop is a slash command (skill) that schedules a prompt to run on a recurring
interval. It is syntactic sugar over the internal Kairos Cron scheduling
system (CronCreate / CronDelete / CronList tools).
---
// ==UserScript==
// @name 语雀文档导出工具
// @namespace http://tampermonkey.net/
// @version 0.1.0
// @description 导出语雀文档为 Markdown 文件
// @author sorrycc
// @match https://www.yuque.com/*
// @match https://yuque.antfin.com/*
// @require https://cdn.jsdelivr.net/gh/eligrey/FileSaver.js@v2.0.4/dist/FileSaver.min.js
// @require https://cdn.jsdelivr.net/gh/Stuk/jszip@v3.0.0/dist/jszip.min.js
@sorrycc
sorrycc / a.json
Created February 27, 2026 02:44
Change right_command to hyper key (f19 when alone). Change right_option to fn.
{
"description": "Change right_command to hyper key (f19 when alone). Change right_option to fn.",
"manipulators": [
{
"from": {
"key_code": "right_option",
"modifiers": {
"optional": [
"any"
]

Remote Control (Tengu Bridge) — Implementation Reference

Extracted from versions/2.1.52/cli.js (Claude Code v2.1.52, built 2026-02-24) Purpose: Enable a local CLI agent session to be accessed/controlled from a web UI (claude.ai/code)


Table of Contents

  1. Architecture Overview
import { getCookies } from "@steipete/sweet-cookie";
const TWITTER_URL = "https://x.com/";
const TWITTER_ORIGINS = ["https://x.com/", "https://twitter.com/"];
const COOKIE_NAMES = ["auth_token", "ct0"];
function pickCookieValue(
cookies: Array<{ name?: string; value?: string; domain?: string }>,
name: string
): string | null {

TeammateTool Implementation Guide

Reverse-engineered from Claude Code CLI v2.1.34. This document provides a complete blueprint for implementing a multi-agent teammate coordination system in another code agent.


Table of Contents

  1. Architecture Overview
  2. Data Structures & Schemas
@sorrycc
sorrycc / linuxdo.js
Created January 13, 2026 03:21
Linux.do 自动浏览 + 点赞 + 实时统计面板
// ==UserScript==
// @name linuxdo保活优化版(高性能版)
// @namespace http://tampermonkey.net/
// @version 0.6.0
// @description Linux.do 自动浏览 + 点赞 + 实时统计面板 + 面板控制启动/停止/暂停(性能优化版)
// @author levi & ChatGPT
// @match https://linux.do/*
// @grant GM_setValue
// @grant GM_getValue
// @license MIT
@sorrycc
sorrycc / Flova.ai Tools.md
Created January 7, 2026 05:56
Flova.ai Tools - AI视频创作能力清单
date created date modified
2026-01-07
2026-01-07

请列出你对最终用户公开、且允许用户触发的能力/动作清单(不要包含内部函数名、实现细节)。对每项能力给出:用途、我需要提供的输入字段、输出形式、常见失败原因/限制、一个示例请求。


1) 创建项目与创意概述

# TypeScript Project Setup Prompt
Set up a modern TypeScript project with the following structure and configurations:
## Project Requirements
1. **Package Manager**: pnpm@10.24.0
2. **Runtime Management**: Volta for Node.js version pinning
3. **Build Tool**: Bun for fast bundling
4. **Code Quality**: Biome for formatting and linting
# Inline Name Editing on /me Page
**Date:** 2025-11-11
**Feature:** Support user to update name inline on the /me page
---
## Requirements
- **Interaction Pattern:** Always editable input field with auto-save on blur