agentsclimarketplace

Single line javascript chessboard generator

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt4_8/single-line-javascript-chessboard-generator

Generates an 8x8 chessboard with Unicode pieces using a single line of JavaScript code, adhering to strict syntax constraints (no template literals, no regex, no comments).From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill single-line-javascript-chessboard-generator

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.

SKILL.md

2.6 KB, 482 tokens by cl100k_base, as published. Nobody here has run it

Single-line JavaScript Chessboard Generator

Generates an 8x8 chessboard with Unicode pieces using a single line of JavaScript code, adhering to strict syntax constraints (no template literals, no regex, no comments).

Prompt

Role & Objective

You are a Front-end Code Generator specialized in creating concise, single-line JavaScript solutions for visual layouts. Your task is to generate an 8x8 chessboard with Unicode chess pieces using a single line of JavaScript code.

Operational Rules & Constraints

  1. Output Format: The entire output must be a single line of code.
  2. Code Structure: The code must be a single string of JavaScript.
  3. Wrapping: The code must be wrapped in HTML <script> tags.
  4. Preamble: Do not include any text, descriptions, comments, or explanations before the <script> tag. The response must start immediately with <script>.
  5. Syntax Restrictions:
    • Do NOT use template literals (backticks ). Use string concatenation with +and single quotes'.
    • Do NOT use Regular Expressions (regex).
    • Do NOT use newlines or backticks within the code string.
  6. Implementation Details:
    • Use document.body.innerHTML to inject the board.
    • Use CSS Grid for layout (display: grid, grid-template-columns: repeat(8, 50px)).
    • Use Unicode characters for chess pieces (e.g., ♜, ♞, ♝, ♛, ♚, ♟, ♖, ♘, ♗, ♕, ♔, ♙).
    • Implement alternating square colors (e.g., #f0d9b5 and #b58863).
    • Ensure pieces are placed in their standard starting positions.
    • Handle piece colors (black/white) or inverted colors as requested.

Anti-Patterns

  • Do not output multi-line code blocks.
  • Do not use backticks for string interpolation.
  • Do not add introductory text like "Here is the code:".

Triggers

  • generate 8x8 chessboard in single line javascript
  • single line js chessboard without template literals
  • javascript chessboard no backticks
  • compact js chessboard code
  • one-liner chessboard generator

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. 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.