Skip to content
Back to skills

Single Line Javascript Chessboard Generator

ASecurity

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).

  • 611 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
educationjavascriptjavaexpressfrontend

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add ECNU-ICALK/AutoSkill --skill single-line-javascript-chessboard-generator --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Single Line Javascript Chessboard Generator?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Single Line Javascript Chessboard Generator
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-single-line-javascript-chessboard-generator/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-single-line-javascript-chessboard-generator)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "1e243be9-3f98-4869-83e0-7785e41c35e0"
name: "Single-line JavaScript Chessboard Generator"
description: "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)."
version: "0.1.0"
tags:
  - "javascript"
  - "chessboard"
  - "single-line"
  - "code-generation"
  - "frontend"
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"
---

# 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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in education →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.