Token导航 LogoToken导航TokenDH.com
AI 工具操作浏览器github未标认证来源可访问clear审计通过

algorithmic-art算法艺术

Agent Skill

algorithmic-art 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

2,399

周安装

98

GitHub Stars

76

下载量

768
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:algorithmic-art(算法艺术)
来源仓库:https://github.com/404kidwiz/claude-supercode-skills
仓库路径:skills/algorithmic-art
安装命令:
npx skills add https://github.com/404kidwiz/claude-supercode-skills --skill algorithmic-art
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/404kidwiz/claude-supercode-skills --skill algorithmic-art

简介

algorithmic-art 提供创意编程专长,专注于生成艺术、数学可视化和交互式装置的设计实现。

  • 适用于创建 NFT、数据可视化图表或教学用的算法图案等创意项目。
  • 支持粒子系统、流场模拟、分形绘制及细胞自动机等多样化视觉表达技术。
  • 基于 p5.js 框架开发,可根据目标风格选择噪声算法、向量场或 L-System 等生成方式。
  • 安装前请核实是否需要联网获取外部资源或执行图形渲染相关操作。

SKILL.md

Algorithmic Artist

Purpose

Provides creative coding expertise specializing in generative art, mathematical visualizations, and interactive installations using p5.js. Creates visual art through code with flow fields, particle systems, noise algorithms, and algorithmic patterns for creative and educational purposes.

When to Use

  • Creating generative artwork (NFTs, wallpapers, posters)
  • Building interactive data visualizations
  • Simulating natural phenomena (flocking, cellular automata)
  • Designing mathematical patterns (fractals, tessellations)
  • Teaching creative coding concepts


2. Decision Framework

Algorithm Selection

What is the visual goal?
│
├─ **Organic / Natural**
│  ├─ Texture? → **Perlin Noise / Simplex Noise**
│  ├─ Movement? → **Flow Fields / Vector Fields**
│  └─ Growth? → **L-Systems / Diffusion Limited Aggregation (DLA)**
│
├─ **Geometric / Structured**
│  ├─ Repetition? → **Grid Systems / Tilemaps**
│  ├─ Recursion? → **Fractals (Mandelbrot, Sierpinski)**
│  └─ Division? → **Voronoi / Delaunay Triangulation**
│
└─ **Simulation**
   ├─ Physics? → **Verlet Integration / Springs**
   └─ Behavior? → **Boids (Flocking) / Cellular Automata**

Randomness Strategy

TypeFunctionDescription
Uniformrandom()Complete chaos. White noise.
GaussianrandomGaussian()Bell curve. Most values near mean.
Perlinnoise()Smooth, gradient randomness. "Cloud-like".
SeededrandomSeed()Deterministic. Same output every time.

Red Flags → Escalate to threejs-pro:

  • Requirement for heavy 3D rendering (p5.js WebGL mode is limited compared to Three.js)
  • Complex lighting/shadow requirements
  • VR/AR integration needed


Workflow 2: Recursive Tree (Fractal)

Goal: Draw a tree using recursion.

Steps:

  1. Branch Function

- Draw line of length len. - Translate to end of line. - Rotate theta. - Call branch(len * 0.67). - Rotate -theta * 2. - Call branch(len * 0.67).

  1. Termination

- Stop when len < 2.



Core Capabilities

Generative Art Creation

  • Creates visual artwork using mathematical algorithms and randomness
  • Implements flow fields, particle systems, and noise-based visualizations
  • Generates geometric patterns, fractals, and tessellations
  • Creates procedural animations and interactive installations

Mathematical Visualization

  • Implements algorithms for data-driven visual representations
  • Creates visualizations of mathematical concepts (fractals, chaos theory)
  • Builds interactive simulations of natural phenomena
  • Develops educational visualizations for mathematical concepts

Performance Optimization

  • Optimizes rendering performance for complex generative systems
  • Implements canvas/WebGL optimizations for real-time artwork
  • Creates efficient particle systems and spatial data structures
  • Manages memory usage for large-scale generative projects

Creative Technology Integration

  • Integrates generative art with web technologies
  • Creates exportable artwork in various formats (PNG, SVG, GIF, video)
  • Implements interactivity and user input responsiveness
  • Develops installations combining code with physical outputs


5. Anti-Patterns & Gotchas

❌ Anti-Pattern 1: Heavy Computation in draw()

What it looks like:

  • Creating 10,000 objects every frame.
  • Resizing array every frame.

Why it fails:

  • FPS drops to 5. Browser hangs.

Correct approach:

  • Pre-calculate: Generate static geometry in setup().
  • Pool Objects: Reuse particles instead of new Particle().

❌ Anti-Pattern 2: Ignoring Resolution

What it looks like:

  • Hardcoding width = 500.
  • Art looks pixelated on Retina screens.

Why it fails:

  • Looks bad on high-DPI monitors or prints.

Correct approach:

  • pixelDensity(2) (or higher).
  • Use relative units (width * 0.5) instead of absolute pixels.

❌ Anti-Pattern 3: Pure Randomness

What it looks like:

  • fill(random(255), random(255), random(255))

Why it fails:

  • "Clown vomit" aesthetic. No cohesion.

Correct approach:

  • Curated Palettes: Pick 5 colors and stick to them.
  • Constraints: Randomness should be the spice, not the meal.


7. Quality Checklist

Visuals:

  • Resolution: Sharp on Retina (pixelDensity).
  • Composition: Follows Rule of Thirds or Golden Ratio.
  • Color: Palette is cohesive (not pure random).

Performance:

  • FPS: 60fps for interactive, any FPS for static generation.
  • Memory: No memory leaks (arrays growing infinitely).

Code:

  • Seeding: randomSeed() used for reproducibility.
  • Resizing: windowResized() handles layout changes.
  • Modularity: Classes used for complex entities (Agent, Particle).

Examples

Example 1: Interactive Data Visualization

Scenario: A data analyst wants to visualize population growth data as an animated circle packing visualization where circle sizes represent population figures.

Approach:

  1. Data Processing: Load CSV data and normalize population values to circle radii
  2. Circle Packing Algorithm: Implement iterative circle placement with collision detection
  3. Color Mapping: Create HSL color palette based on geographic region
  4. Interactivity: Add mouse hover to display country name and population

Key Implementation:

// Circle packing with growth animation
function draw() {
  background(20);
  for (let circle of circles) {
    if (!circle.grown) {
      circle.grow();
      if (circle.grown) {
        circle.resolveCollisions(circles);
      }
    }
    circle.display();
  }
}

Result: Interactive visualization showing 50 countries with color-coded regions, smooth growth animations, and hover tooltips.

Example 2: Generative Art NFT Collection

Scenario: An artist wants to create a 10,000-piece NFT collection with programmatically generated flowers, ensuring rarity distribution and visual cohesion.

Approach:

  1. Trait Architecture: Define layers (background, stem, petals, center) with rarity weights
  2. Hash-based Generation: Use hash function to deterministically select traits
  3. Color Harmony: Implement HSL-based color palettes with complementary accent colors
  4. Batch Generation: Generate and export 10,000 images with metadata

Key Features:

  • 5 background types with varying rarity (common to legendary)
  • 20 flower types with 4 color variations each
  • Guaranteed visual uniqueness while maintaining aesthetic cohesion
  • Metadata JSON generation for Opensea compatibility

Example 3: Educational Physics Simulation

Scenario: A physics teacher needs an interactive demonstration of particle collision and momentum conservation for a high school class.

Approach:

  1. Particle System: Create particles with position, velocity, and mass
  2. Collision Detection: Implement elastic collision physics
  3. Controls: Add sliders for gravity, elasticity, and particle count
  4. Visualization: Show velocity vectors and momentum totals in real-time

Educational Features:

  • Adjustable parameters (gravity coefficient, wall bounce)
  • Pause/step controls for detailed analysis
  • Real-time momentum calculations displayed
  • Trail effect showing particle paths

Best Practices

Visual Design Excellence

  • Plan Your Composition: Sketch or use design tools before coding complex visualizations
  • Use Color Thoughtfully: Create intentional palettes rather than random colors
  • Apply Design Principles: Golden ratio, rule of thirds, visual hierarchy
  • Consider Accessibility: Ensure sufficient contrast and consider colorblind-friendly palettes
  • Test at Multiple Resolutions: Verify visual integrity from favicon to poster size

Performance Optimization

  • Pre-calculate When Possible: Move static geometry generation to setup()
  • Pool Objects: Reuse particle objects instead of creating new ones each frame
  • Limit Array Operations: Cache array length, avoid array methods in draw() loops
  • Use pixelDensity Wisely: Set appropriately for target display (1 for performance, 2 for Retina)
  • Profile Regularly: Use browser dev tools to identify bottlenecks

Algorithm Selection

  • Match Algorithm to Goal: Noise for organic, recursion for fractals, boids for behavior
  • Start Simple: Implement basic version first, add complexity incrementally
  • Understand the Math: Know the underlying mathematics of algorithms you use
  • Iterate Parameters: Small parameter changes often yield dramatically different results
  • Combine Techniques: Layer multiple algorithms for complex visuals (noise + flow fields + particles)

Code Organization

  • Use Classes for Complex Entities: Particle, Agent, Vehicle classes for organization
  • Separate Configuration: Extract parameters to configurable objects
  • Document Your Algorithms: Add comments explaining the math and logic
  • Create Utility Functions: Modularize common operations (color generation, random ranges)
  • Version Your Work: Save iterations to understand your creative process

Export and Distribution

  • Preserve Reproducibility: Use randomSeed() for deterministic exports
  • Optimize for Target: Export at appropriate resolution and format
  • Include Metadata: Add creator attribution and generation parameters
  • Test Export Pipeline: Verify exported images match on-screen appearance
  • Backup Source Code: Keep editable source for future modifications

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

28.01%
按下载量换算215

OpenCode

20.48%
按下载量换算157

Cursor

16.75%
按下载量换算129

Codex

12.44%
按下载量换算96

windsurf

6.81%
按下载量换算52

Gemini CLI

3.54%
按下载量换算27

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills