Skip to content

Instantly share code, notes, and snippets.

View FradSer's full-sized avatar
🎯
Focusing

Frad LEE FradSer

🎯
Focusing
View GitHub Profile
@FradSer
FradSer / README.md
Last active June 30, 2026 15:51
lark-* skill 组织策略 E2E 测试(decentralized vs routed router-skill),对比 larksuite/cli issue #1465

lark-* skill 组织策略 E2E 测试

对比两种 skill 发现面:decentralized(每个 skill description 自驱动)vs routed(子 skill 保留原版描述 + 上层 lark-router 统筹分发)。用真实 @skills/ lark-* 27 个 skill。模型:GLM-5.2

文件

  • cases.py — 12 个重叠测试用例
  • select_test.py — 主测试:把 skill 目录喂给 headless claude -p,让其输出 PICK: <skill>。用独立 HOME 隔离全局 office:lark 插件。
  • SKILL.md + dispatch.md — 自编 lark-router 的两个文件(gist 扁平化,原本在 lark-router/ 与 lark-router/references/ 下)
  • REPORT.md — 完整结果与结论
@FradSer
FradSer / mosquitto.png
Created June 25, 2026 04:52
Mosquitto icon (square 512x512) for unRAID template
iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAAAXNSR0IArs4c6QAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAACAKADAAQAAAABAAACAAAAAAAoMJe/AABAAElEQVR4Ae2dB7gURdaG68Il55yDgCQVJChgADGLihHXLKY157BizmENq2v8d9U155zFjDlgxgAqIBhAQHK84F/fQMNwmZk74Xw9M7e/8zwwc2e6q069derM6e6qUyV/eXESERABERABERCBSBGoEqnWqrEiIAIiIAIiIAIxAgoAZAgiIAIiIAIiEEECCgAi2OlqsgiIgAiIgAgoAJANiIAIiIAIiEAECSgAiGCnq8kiIAIiIAIioABANiACIiACIiACESSgACCCna4mi4AIiIAIiIACANmACIiACIiACESQgAKACHa6miwCIiACIiACCgBkAyIgAiIgAiIQQQIKACLY6WqyCIiACIiACCgAkA2IgAiIgAiIQAQJKACIYKerySIgAiIgAiKgAEA2IAIiIAIiIAIRJKAAIIKdriaLgAiIgAiIgAIA2YAIiIAIiIAIRJCAAoAIdrqaLAIiIAIiIAIKAGQDIiACIiACIhBBAgoAItjparIIiIAIiIAIKACQDYiACIiACIhABAkoAIhgp6vJIiACIiACIqAAQDYgAiIgAiIgAhEkoAAggp2uJouACIiACIiAAgDZgAiIgAiIgAhEkIACgAh2uposAiIgAiIgAgoAZAMiIAIiIAIiEEECCgAi2OlqsgiIgAiIgAgoAJANiIAIiIAIiEAECSgAiGCnq8kiIAIiIAIioABANiACIiACIiACESSgACCCna4mi4AIiIAIiIACANmACIiACIiACESQgAKACHa6miwCIiACIiACCgBkAyIgAiIgAiIQQQIKACLY6WqyCIiACIiACCgAkA2IgAiIgAiIQAQJKACIYKerySIgAiIgAiKgAEA2IAIiIAIiIAIRJKAA
const orgId = document.cookie.match(/(?:^|;\s*)lastActiveOrg=([^;]+)/)?.[1];
if (orgId) {
fetch(`https://claude.ai/api/organizations/${orgId}/overage_credit_grant`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: '{}'
})
.then(res => res.json())
.then(console.log);
@FradSer
FradSer / statusline.sh
Last active October 25, 2025 07:10
$HOME/.claude/statusline.sh
#!/bin/bash
# Claude Code Status Line - inspired by Starship configuration
# Reads JSON input from stdin and displays contextual information
input=$(cat)
# Extract information from JSON input
model_name=$(echo "$input" | jq -r '.model.display_name // "Claude"')
current_dir=$(echo "$input" | jq -r '.workspace.current_dir // ""')
# MARK: - Claude Code
# Claude provider configurations - format: ["provider"]="url|token"
declare -A CLAUDE_PROVIDERS=(
["provider"]="url|token"
["provider"]="url|token"
["provider"]="url|token"
)
function claude() {
@FradSer
FradSer / .cursorrules
Last active February 19, 2025 14:24
.cursorrules and .cursor/rules for SwiftUI Project
- Follow the user's requirements exactly as provided.
- Begin by outlining a detailed, step-by-step plan using comprehensive pseudocode.
- Once the plan is confirmed, proceed to write the code.
- Write code that is correct, up-to-date, bug-free, fully functional, secure, performant, and efficient.
- Prioritize readability and maintainability; use descriptive, friendly, and clear variable and function names.
- Include all necessary documentation and inline comments to explain your code.
- Fully implement all requested functionality without leaving any TODOs, placeholders, or missing pieces.
- Be concise and minimize any extraneous prose.
- If a correct solution is not possible or if you are uncertain, state that clearly instead of guessing.
@FradSer
FradSer / create-nuclear-hexagrams.ts
Created January 2, 2025 09:39
Generates a Nuclear Hexagram (互卦 / Hu Gua) from the provided original hexagram.
/**
* Generates a Nuclear Hexagram (互卦 / Hu Gua) from the provided original hexagram.
*
* The Nuclear Hexagram is a combination of two trigrams,
* the Upper Trigram (上卦 / Shang Gua) and the Lower Trigram (下卦 / Xia Gua):
* - The Upper Trigram is formed by extracting the third, fourth,
* and fifth lines from the original hexagram.
* - Conversely, the Lower Trigram is formed by extracting the second, third,
* and fourth lines from the original hexagram.
*
@FradSer
FradSer / 75_-Alice-Layout-by-Frad.kbd.json
Last active September 22, 2024 13:39
75% Alice Layout by Frad
[
{
"name": "75% Alice Layout by Frad",
"author": "Frad LEE",
"switchMount": "cherry"
},
[
{
"x": 1.45,
"a": 7
export PATH="/opt/homebrew/bin:$PATH" # Setup Homebrew
eval "$(starship init zsh)" # Setup starship
source $HOME/.config/dotflies/*.zsh # Setup custom dotfiles
# Download Znap, if it's not there yet.
[[ -f $HOME/.znap/zsh-snap/znap.zsh ]] ||
git clone --depth 1 -- \
https://github.com/marlonrichert/zsh-snap.git $HOME/.znap/zsh-snap
# /bin/bash
echo "Removing Oculus folder..."
rm -rf ./Assets/Oculus ./Assets/Oculus.meta
echo "Removing files named with oculus, OVR, AndroidManifest, vrapi, vrlib, vrplatlib..."
find . -name "oculus" -exec rm -rf {} \;
find . -name "OVR" -exec rm -rf {} \;
find . -name "AndroidManifest" -exec rm -rf {} \;
find . -name "vrapi" -exec rm -rf {} \;
find . -name "vrlib" -exec rm -rf {} \;