Skip to content
Back to skills

1 Use Consistent Indentation

ASecurity

Sub-skill of yaml-configuration: 1. Use Consistent Indentation (+4).

  • 17 stars
  • 0 votes
  • 1 copy
  • 1 view
  • Added September 9, 2026
documentationgo

Security analysis

A100/100

Scanned September 9, 2026

npx -y skills add vamseeachanta/workspace-hub --skill 1-use-consistent-indentation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 1 Use Consistent Indentation?

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

Security grade badge for 1 Use Consistent Indentation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vamseeachanta-1-use-consistent-indentation/badge)](https://www.skillsdirectory.com/skills/vamseeachanta-1-use-consistent-indentation)

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
---
name: yaml-configuration-1-use-consistent-indentation
description: 'Sub-skill of yaml-configuration: 1. Use Consistent Indentation (+4).'
version: 1.0.0
category: data
type: reference
scripts_exempt: true
---

# 1. Use Consistent Indentation (+4)

## 1. Use Consistent Indentation

```yaml
# ✅ Good: 2 spaces
vessel:
  dimensions:
    length: 320
    beam: 58

# ❌ Bad: Mixed indentation
vessel:
   dimensions:
     length: 320
   beam: 58
```


## 2. Quote Strings When Needed

```yaml
# Quote strings that could be interpreted as numbers or booleans
name: "12345"  # Without quotes, would be number
flag: "true"   # Without quotes, would be boolean

# Quote strings with special characters
description: "Wave height: 8.5m"
```


## 3. Use Anchors for Reusability

```yaml
# Define common material
steel: &steel
  density: 7850
  E: 200e9

# Reuse
chain_material: *steel
pipe_material: *steel
```


## 4. Add Comments for Clarity

```yaml
environment:
  water_depth: 1500  # meters, site-specific
  wave:
    Hs: 8.5  # 100-year return period
    Tp: 12.0  # Associated peak period
```


## 5. Organize Logically

```yaml
# Group related items
analysis:
  # ... analysis settings

environment:
  # ... environmental parameters

vessel:
  # ... vessel properties

mooring:
  # ... mooring system
```

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.

Comments

Loading comments…

Newsletter

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