routine-layout-and-structure

用于以标准缩进格式化例程参数,并通过空行组织例程内部结构。适合定义多行参数的函数、编写例程实现或制定函数格式化的编码规范。

仓库最近推送
GitHub Stars
140
Forks
36
Issues / PRs
1

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "routine-layout-and-structure":https://skillpi.com/zh/skills/deepskill-e294f26b7bedd5333594cd827ee76c2c2ccfb27d3c88aa7fbbd9cb8721ec47f6。安装前核对上游来源和版本:https://github.com/kitchen-engineer42/pdf2skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

用于以标准缩进格式化例程参数,并通过空行组织例程内部结构。适合定义多行参数的函数、编写例程实现或制定函数格式化的编码规范。

0 下载

介绍来源: third_party · kitchen-engineer42 · 0.0.1 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: routine-layout-and-structure
description: Format routine parameters using standard indentation and organize routine internal structure with blank lines. Use when defining functions with multi-line parameters, writing routine implementations, or establishing coding standards for function formatting.

Routine Layout and Structure

Apply these formatting rules to improve routine readability and maintainability.

Routine Parameter Layout

When to apply: When routine parameters cannot fit on a single line

  1. Use standard indentation for multi-line parameter lists
  2. Place each parameter on a new line
  3. Vertically align parameters using standard indentation

Avoid "Endline Layout":

  • Endline layout attempts to align parameters to the right edge
  • High maintenance cost: changing function name length requires reformatting all parameter lines
  • Can cause right-side space limitations

Advantages of standard indentation:

  • Better accuracy, consistency, readability, and maintainability
  • Function name changes don't affect parameter layout
  • Adding or removing parameters requires modifying only one line

Routine Internal Structure

When to apply: When writing routine implementations with declarations and executable code

Use blank lines to separate logical parts of the routine:

  1. After the routine header
  2. Around data declarations and named constant declarations (if present)
  3. Before the routine body

Purpose: Clearly delineate the logical components (header, declarations, body) of the routine.

Result

  • Parameter lists are clear and easy to maintain
  • Routine structure is visually organized with clear section boundaries
  • Code modifications don't cascade formatting changes

当前收录版本

0.0.1

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值65/100

亮点

  • 提供清晰的函数参数多行缩进与内部结构空行组织规范
  • 有助于提升代码可读性和维护性
触发精准85/100

亮点

  • description 明确覆盖多行参数函数定义、例程实现等核心场景
  • 触发边界清晰,不易误触
结构规范90/100

待提升项

  • 缺少 When to Use 显式章节标题 原报告严重程度:轻微

    文档中使用了 'When to apply' 子标题,但未在顶层设置统一的 'When to Use' 章节

    改进建议:建议在文档顶部添加 'When to Use' 章节,统一归纳所有适用场景,便于用户快速判断是否需要使用该 Skill

亮点

  • 文档结构清晰,分模块阐述不同格式化规则
  • 每个模块均包含适用条件、具体规则和优缺点分析
  • frontmatter 完整,内容组织良好
执行可靠95/100

亮点

  • 内容为纯文本规范指导,无外部依赖,执行稳定可靠
  • 逻辑自洽,规则描述准确无误
证据可验 (前四项均值)84/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。