Skip to content

peterfei/ai-agent-team / .claude/skills/drawnote

drawnote-skill

Verified

智能笔记与流程图绘制工具(优化版-无权限读取)。根据用户提供的内容,自动生成精美的可视化笔记和流程图,支持多种风格(手写笔记、思维导图、流程图等),并导出为图片。使用内置模板,无需读取文件权限。适用于:(1) 学习笔记可视化,(2) 知识梳理与总结,(3) 流程图绘制,(4) 概念解释图表

FileKindSize
.npmignoreother14 B
SKILL.mdskill md12.9 KB
package-lock.jsonmanifest2.5 KB
package.jsonmanifest769 B
scripts/capture.jsexecutablescript6.0 KB
scripts/check-status.jsscript5.1 KB
scripts/install-dependencies.jsscript1.5 KB
scripts/verify-installation.jsscript4.7 KB
styles/彩色手写笔记风格.mdmarkdown12.0 KB
生成信息图提示词.mdmarkdown11.5 KB
风格使用指南.mdmarkdown10.7 KB

scripts/install-dependencies.js

View on GitHub
#!/usr/bin/env node

/**
 * DrawNote Skill 依赖安装脚本
 * 负责 Playwright 浏览器的安装和验证
 */

const { spawn } = require('child_process');
const fs = require('fs');
const path = require('path');

console.log('🎭 DrawNote Skill - 依赖安装脚本');
console.log('=====================================');

const skillDir = path.dirname(__dirname);
const nodeModulesDir = path.join(skillDir, 'node_modules');
const playwrightDir = path.join(nodeModulesDir, 'playwright');

// 检查是否已经安装
if (fs.existsSync(playwrightDir)) {
  console.log('✅ Playwright 已安装,跳过浏览器下载');
  process.exit(0);
}

console.log('📦 开始安装 Playwright 浏览器...');

// 使用 spawn 异步安装,避免阻塞
const installProcess = spawn('npx', ['playwright', 'install', 'chromium', '--with-deps'], {
  cwd: skillDir,
  stdio: 'inherit',
  detached: true
});

installProcess.on('error', (error) => {
  console.error('❌ 安装失败:', error.message);
  process.exit(1);
});

installProcess.on('close', (code) => {
  if (code === 0) {
    console.log('✅ Playwright 浏览器安装完成');
  } else {
    console.error(`❌ 安装失败,退出码: ${code}`);
    console.log('\n🔧 手动安装步骤:');
    console.log('   cd ~/.claude/skills/drawnote');
    console.log('   npx playwright install chromium --with-deps');
  }
});

// 让进程在后台运行
installProcess.unref();

console.log('🚀 浏览器安装已在后台启动...');
console.log('💡 安装完成后,DrawNote Skill 将自动可用');
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 471kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 322kUpdated Claude CodeCodexVerifiedInstall