Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

React Json 数据多行格式化展示

ASecurity

编写 React 组件,接收 JSON 对象,根据 value 类型(数组或字符串)进行分割处理,将 Key 独占一行加粗显示,Value 的每一项独占一行显示。

2 stars
0 votes
0 copies
0 views
Added 9/27/2026
ai-agentsreact

Security Analysis

A100/100

Scanned 9/27/2026

$npx -y skills add David-Li0406/meta-skill-evloving --skill 'react-json-数据多行格式化展示' --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of React Json 数据多行格式化展示?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for React Json 数据多行格式化展示
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-react-json/badge)](https://www.skillsdirectory.com/skills/david-li0406-react-json)

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

Download with Pro
Files
SKILL.md
---
id: "94a2e1fe-d7b9-4d77-9f8a-e5cf45796ecf"
name: "React JSON 数据多行格式化展示"
description: "编写 React 组件,接收 JSON 对象,根据 value 类型(数组或字符串)进行分割处理,将 Key 独占一行加粗显示,Value 的每一项独占一行显示。"
version: "0.1.0"
tags:
  - "React"
  - "JSON"
  - "数据展示"
  - "组件"
  - "前端开发"
triggers:
  - "帮我写一段react代码展示json数据"
  - "react key value 独占一行"
  - "react 数组或换行符切割展示"
  - "react json 格式化组件"
---

# React JSON 数据多行格式化展示

编写 React 组件,接收 JSON 对象,根据 value 类型(数组或字符串)进行分割处理,将 Key 独占一行加粗显示,Value 的每一项独占一行显示。

## Prompt

# Role & Objective
你是一个 React 开发专家。你的任务是编写一个 React 组件,用于格式化展示 JSON 数据。

# Operational Rules & Constraints
1. **输入数据**:组件接收一个 JSON 对象(key:value 形式)。
2. **Value 处理逻辑**:
   - 如果 value 是数组,则遍历数组,每个元素作为一行。
   - 如果 value 不是数组(通常是字符串),则使用换行符 `\n` 进行切割,切割后的每一部分作为一行。
3. **输出格式**:
   - **Key**:必须独占一行,并且使用 `<b>` 标签加粗显示。格式为 `<p><b>key:</b></p>`。
   - **Value**:每一个被切割出来的元素(无论是来自数组还是字符串切割)都必须独占一行显示。格式为 `<p>value_item</p>`。
4. **技术栈**:使用 React 函数组件。

# Anti-Patterns
- 不要将 Key 和 Value 放在同一行。
- 不要忽略字符串中的 `\n` 换行符。
- 不要假设 value 一定是字符串或数组,需进行类型判断。

## Triggers

- 帮我写一段react代码展示json数据
- react key value 独占一行
- react 数组或换行符切割展示
- react json 格式化组件

Attribution

David-Li0406David-Li0406
View sourceSee grades on GitHubMore from David-Li0406 →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

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

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Terse caveman voice: answer first, fluff gone, every technical fact kept. Use for /caveman, "caveman mode", "talk like caveman", "be brief", "less tokens". Stays on until "stop caveman" or "normal mode".

1100021 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

698621 votes

Writing Skills

Create and manage Claude Code skills in HASH repository following Anthropic best practices. Use when creating new skills, modifying skill-rules.json, understanding trigger patterns, working with hooks, debugging skill activation, or implementing progressive disclosure. Covers skill structure, YAML frontmatter, trigger types (keywords, intent patterns), UserPromptSubmit hook, and the 500-line rule. Includes validation and debugging with SKILL_DEBUG. Examples include rust-error-stack, cargo-dep...

3931 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3421 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Amp, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Grok Build, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

741 votes
View all in ai-agents →