Token导航 LogoToken导航TokenDH.com
研究检索只读clawhub未标认证来源可访问clear审计通过

aspect-calc方面计算

Agent Skill

aspect-calc 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

4,153

周安装

168

GitHub Stars

公开资料未说明

下载量

1,304
OpenClaw

安装说明

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

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:aspect-calc(方面计算)
来源仓库:https://github.com/ohernandez-dev-blossom/aspect-calc
安装命令:
openclaw skills install aspect-calc
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install aspect-calc

简介

aspect-calc 根据已知尺寸自动计算长宽比并补全缺失维度。

  • 适用于图像处理、UI 设计或摄影构图中的比例调整。
  • 输入宽高之一即可推导另一值,保持原始比例不变。
  • 不支持非整数比例换算,需手动干预特殊情况。aspect-calc 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 常用于图片裁剪、打印尺寸规划等实际应用场景。

SKILL.md

name
aspect-calc
description
Calculate aspect ratios from dimensions and find missing width or height. Use when the user asks to calculate an aspect ratio, find the height for a given width, simplify a ratio, or resize dimensions while preserving aspect ratio.

Aspect Ratio Calculator

Calculate simplified aspect ratios from pixel dimensions, find missing dimensions from a known ratio, and report decimal and percentage equivalents using GCD simplification.

Input

  • Two dimensions (width and height in pixels), OR
  • A known ratio (e.g., 16:9) and one dimension (width or height), to calculate the missing value

Output

  • Simplified ratio (e.g., 16:9)
  • Decimal ratio (e.g., 1.7778)
  • Percentage (width as % of height, e.g., 177.78%)
  • If solving for missing dimension: the calculated value

Instructions

  1. Parse the user's input to determine the mode:

- Mode A: two pixel dimensions given → calculate ratio and metadata - Mode B: ratio + one dimension given → calculate the missing dimension

  1. Mode A — Ratio from dimensions:

a. Compute divisor = GCD(width, height) using the Euclidean algorithm: GCD(a, b) = b === 0 ? a : GCD(b, a % b) b. Simplified ratio: (width / divisor):(height / divisor) c. Decimal: (width / height).toFixed(4) d. Percentage: (width / height * 100).toFixed(2)%

  1. Mode B — Dimension from ratio:

a. Parse the ratio as rW:rH b. If width is given: height = round(width * rH / rW) c. If height is given: width = round(height * rW / rH)

  1. Identify if the ratio matches a known standard and name it:

- 16:9 → HD Video / Widescreen - 4:3 → Classic TV / Standard - 1:1 → Square - 21:9 → Ultrawide - 9:16 → Mobile Video / Story - 3:4 → Portrait Classic - 3:2 → 35mm Film - 2:3 → Portrait Photo

  1. Output all results clearly.

Options

  • width: positive integer
  • height: positive integer
  • ratio: string in W:H format — for Mode B
  • locked: if true, preserve the current ratio when one dimension changes

Examples

Input: "What is the aspect ratio of 1920x1080?" Output:

  • Simplified ratio: 16:9 (HD Video / Widescreen)
  • Decimal: 1.7778
  • Percentage: 177.78% (width is 177.78% of height)

Input: "I have a 16:9 video, width is 1280px — what height do I need?" Output:

  • Width: 1280px, Ratio: 16:9
  • Height: 720px
  • (1280 × 9 / 16 = 720)

Input: "Simplify 2560x1440" Output:

  • Simplified ratio: 16:9 (HD Video / Widescreen)
  • Decimal: 1.7778
  • Percentage: 177.78%

Input: "What is the aspect ratio of 800x600?" Output:

  • Simplified ratio: 4:3 (Classic TV / Standard)
  • Decimal: 1.3333
  • Percentage: 133.33%

Input: "Give me height for a 21:9 ultrawide at 2560px width" Output:

  • Width: 2560px, Ratio: 21:9
  • Height: 1097px
  • (2560 × 9 / 21 ≈ 1097)

Error Handling

  • If either dimension is 0 or negative, return an error: "Dimensions must be positive integers greater than 0."
  • If a ratio is provided in an invalid format (not W:H), ask the user to use the W:H format (e.g., 16:9).
  • If both dimensions result in the same ratio numerator and denominator equal to 1 (e.g., prime dimensions with no common factor), output the ratio as-is and note it cannot be simplified further.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

OpenClaw

92.96%
按下载量换算1,212

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills