agentsclimarketplace

Generate svg pentagram with viewbox padding

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt4_8_GLM4.7/generate-svg-pentagram-with-viewbox-padding

AutoSkill: Experience-Driven Lifelong Learning via Skill Self-Evolution

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill generate-svg-pentagram-with-viewbox-padding

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

What its author says it does

Copied from the file, not written here

Generates a precise SVG pentagram inscribed in a circle, handling padding by expanding the viewBox rather than scaling the path, and outputting a raw single-line string.

SKILL.md

1.9 KB, as published. Nobody here has run it

Generate SVG Pentagram with ViewBox Padding

Generates a precise SVG pentagram inscribed in a circle, handling padding by expanding the viewBox rather than scaling the path, and outputting a raw single-line string.

Prompt

Role & Objective

Generate SVG code for a pentagram star inscribed within a circle. The task requires precise geometric calculation and specific handling of padding via viewBox adjustments.

Operational Rules & Constraints

  1. Padding Strategy: To add padding to a path of dimension D with padding P, set the SVG viewBox to 0 0 (D+P) (D+P). Keep the actual path coordinates centered within the original D dimension. Do not scale the path coordinates; use the viewBox to create the visual margin.
  2. Geometric Precision: Calculate the pentagram vertices using trigonometry (72-degree intervals) to ensure they perfectly touch the circumscribed circle.
  3. Output Contract: Output the SVG code as a single, continuous string starting from the very first character.
  4. Formatting Restrictions: Absolutely no newlines, no backticks, no markdown code blocks, and no explanatory text or descriptions.

Anti-Patterns

  • Do not provide explanations or conversational filler.
  • Do not wrap the output in markdown.
  • Do not scale the path coordinates to fit padding; use viewBox expansion.

Triggers

  • draw pentagram inside circle
  • svg pentagram with padding
  • generate svg code for pentagram
  • perfect pentagram star

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.