Skip to content

Commit a27782b

Browse files
committed
refactor: Remove redundant Argument Access descriptions
Issue: - 'Argument Access' section repeated 4 times (Line 593, 991, 1076, 1146) - Full descriptions duplicated in each template - ~15 lines of redundant content Fix: - Kept comprehensive description in Frontmatter Fields section (Line 593-596) - Simplified in templates to single-line references - Template 1: 3 lines → 1 line - Template 2: 4 lines → 1 line - Template 3: 3 lines → 1 line After: **Argument Access**: `$ARGUMENTS`, `$1`, `$2`, `$3` (see Frontmatter Fields above) Impact: - Removed 9 lines of redundancy - Easier to maintain (single source of truth) - Users still see relevant variables in templates
1 parent 20dbcfd commit a27782b

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

src/metaspec/templates/meta/sdd/commands/specify.md.j2

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -988,9 +988,7 @@ $ARGUMENTS
988988

989989
You **MUST** consider the user input before proceeding (if not empty).
990990

991-
**Argument Access**:
992-
- `$ARGUMENTS` - All arguments as single string
993-
- `$1`, `$2`, `$3` - Individual positional arguments
991+
**Argument Access**: `$ARGUMENTS`, `$1`, `$2`, `$3` (see [Frontmatter Fields](#frontmatter-fields-yaml-metadata) above)
994992

995993
## Purpose
996994
[What protocol-compliant output to produce]
@@ -1073,10 +1071,7 @@ $ARGUMENTS
10731071

10741072
You **MUST** consider the user input before proceeding (if not empty).
10751073

1076-
**Argument Access**:
1077-
- `$ARGUMENTS` - All arguments as single string
1078-
- `$1`, `$2`, `$3` - Individual positional arguments
1079-
- `{ARGS}` - Escaped for script execution
1074+
**Argument Access**: `$ARGUMENTS`, `$1`, `$2`, `$3`, `{ARGS}` (see [Frontmatter Fields](#frontmatter-fields-yaml-metadata) above)
10801075

10811076
## Purpose
10821077
[What to produce, with script handling setup]
@@ -1148,9 +1143,7 @@ model: claude-3-5-haiku-20241022 # Can use lighter model for simple reminders
11481143
$ARGUMENTS
11491144
\```
11501145

1151-
**Argument Access**:
1152-
- `$1` - File to validate (if provided)
1153-
- `$ARGUMENTS` - All arguments
1146+
**Argument Access**: `$ARGUMENTS`, `$1` (see [Frontmatter Fields](#frontmatter-fields-yaml-metadata) above)
11541147

11551148
## Purpose
11561149
Remind AI to suggest validation after producing content

0 commit comments

Comments
 (0)