routine-layout-and-structure
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "routine-layout-and-structure" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-e294f26b7bedd5333594cd827ee76c2c2ccfb27d3c88aa7fbbd9cb8721ec47f6. Verify the upstream source and version against https://github.com/kitchen-engineer42/pdf2skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Used to format routine parameters with standard indentation and to organize internal routine structure with blank lines. Suitable for defining functions with multi-line parameters, writing routine implementations, or establishing function-formatting coding guidelines.
Introduction source: third_party · kitchen-engineer42 · 0.0.1 Reference
SkillPi interpretation
- Tasks
- 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.
- Testing
- Not tested
Browse files
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
- Use standard indentation for multi-line parameter lists
- Place each parameter on a new line
- 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:
- After the routine header
- Around data declarations and named constant declarations (if present)
- 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
Current listing version
0.0.1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供清晰的函数参数多行缩进与内部结构空行组织规范
- 有助于提升代码可读性和维护性
Highlights
- description 明确覆盖多行参数函数定义、例程实现等核心场景
- 触发边界清晰,不易误触
Areas to improve
-
缺少 When to Use 显式章节标题 Reported severity: Minor
文档中使用了 'When to apply' 子标题,但未在顶层设置统一的 'When to Use' 章节
Recommendation: 建议在文档顶部添加 'When to Use' 章节,统一归纳所有适用场景,便于用户快速判断是否需要使用该 Skill
Highlights
- 文档结构清晰,分模块阐述不同格式化规则
- 每个模块均包含适用条件、具体规则和优缺点分析
- frontmatter 完整,内容组织良好
Highlights
- 内容为纯文本规范指导,无外部依赖,执行稳定可靠
- 逻辑自洽,规则描述准确无误
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.