AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Osx Maintain Ai Docs

skill-amauryconstant-openspec-extended-osx-maintain-ai-docs · by amauryconstant

Update AGENTS.md after implementing an OpenSpec change. Use between sync and archive to document what was built for future OpenCode sessions.

No reviews yet
0 installs
27 views
0.0% view→install

Install

$ agentstack add skill-amauryconstant-openspec-extended-osx-maintain-ai-docs

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-amauryconstant-openspec-extended-osx-maintain-ai-docs)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
3mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Osx Maintain Ai Docs? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Update project documentation after implementing an OpenSpec change.

Input: Optionally specify a change name. If omitted, check if it can be inferred from conversation context. If vague or ambiguous you MUST prompt for available changes.


Core Principles

| Principle | Application | |-----------|-------------| | Ruthless conciseness | Only document what AI can't infer from code | | Progressive disclosure | Reference details, don't embed them | | Token efficiency | Tables over verbose lists, front-load essentials | | Specificity | Concrete commands, not vague instructions |

Target lengths:

  • Ideal: 300 lines (review needed)
  • Maximum: >500 lines (must split)

Steps

  1. Select the change

If a name is provided, use it. Otherwise:

  • Infer from conversation context if the user mentioned a change
  • Auto-select if only one active change exists
  • If ambiguous, run openspec list --json to get available changes and use the AskUserQuestion tool to let the user select

Always announce: "Using change: " and how to override.

  1. Read change artifacts

Read files from openspec/changes//:

| File | Extract | |------|---------| | proposal.md | Intent, scope, new features/capabilities | | specs/ | New requirements, modified behaviors | | design.md | Architectural decisions, new patterns, file changes | | tasks.md | Checked items = what was actually built |

Key extraction:

  • New commands/CLI tools added
  • New components/modules created
  • New patterns or conventions established
  • New APIs/endpoints exposed
  • Architectural changes
  1. Read recent code changes

Use git to identify what code was actually modified:

```bash # Get recent commits related to the change git log --oneline -20

# See what files changed in recent commits git diff HEAD~5..HEAD --stat

# View actual diff content for context git diff HEAD~5..HEAD --name-only ```

What to look for:

  • New files created (indicate new components/modules)
  • Modified files (indicate pattern changes or extensions)
  • Deleted files (indicate removed functionality)
  • Commit messages (provide context on what was built)

Cross-reference with artifacts:

  • Match git changes to tasks.md checked items
  • Identify any implementation that differs from design.md
  • Note any additional work not in original artifacts
  1. Detect or create documentation file

``bash test -f AGENTS.md && echo "AGENTS.md found" ``

If AGENTS.md doesn't exist, create minimal documentation:

```markdown # Project - OpenCode Reference

## Quick Reference

| Command | Purpose | |---------|---------| | npm run dev | Start development | | npm run build | Production build |

## Architecture

[Brief overview based on codebase structure]

## Conventions

[Key patterns observed from git changes] ```

  1. Read current documentation
  • Parse existing structure and sections
  • Note current line count
  • Identify sections to preserve

Warn if:

  • AGENTS.md > 300 lines

Error if:

  • AGENTS.md > 500 lines (split required before adding content)
  1. Assess documentation needs

For each implemented item, determine if docs need updating:

| Implementation Type | Action | |---------------------|--------| | New CLI commands/scripts | Add to Quick Reference | | New components/modules | Add brief entry with purpose | | New patterns/conventions | Add specific pattern | | New APIs/endpoints | Add endpoint summary table | | Architecture changes | Update overview section | | Bug fixes/refactors | Usually no update needed | | Internal changes | Skip unless affects conventions |

Filter out:

  • Generic patterns AI already knows
  • Self-evident implementations
  • Standard language conventions
  1. Generate proposed updates

Apply best practices:

Use tables for lists: ``markdown | Command | Purpose | |---------|---------| | npm run dev | Start dev server | | npm run build | Production build | ``

Be specific: ``markdown ✅ "Run npm run typecheck after TypeScript changes" ❌ "Run the typechecker" ``

Progressive disclosure: ``markdown ✅ "See src/auth/AGENTS.md for auth patterns" ❌ [500 lines of auth documentation embedded] ``

Cut generic advice: ``markdown ❌ "Follow coding best practices" ❌ "Write clean code" ❌ "Test thoroughly" ``

  1. Show proposal and confirm

Present changes with impact:

```markdown ## Documentation Updates:

Current state:

  • AGENTS.md: 180 lines (~720 tokens)

Proposed changes:

  • Add "Feature X" to Quick Reference (table format)
  • Add pattern: "Use useX() hook for X state"

After update: ~195 lines (within target)

Apply these updates? ```

Use AskUserQuestion tool to confirm before writing.

  1. Write updates
  • Preserve existing structure
  • Add new content in appropriate sections

Output

On new docs created:

## Documentation Created: 

**File created**:
- AGENTS.md (new, 45 lines)

**Initial content**:
- Quick Reference with detected commands
- Architecture overview from codebase
- Conventions from recent changes

**Next step**: Review and refine, then ready to archive with `/osx-archive`.

On updates applied:

## Documentation Updated: 

**File modified**:
- AGENTS.md: +5 lines (180 → 185)

**Changes applied**:
- Added "Theme System" to Quick Reference
- Added theme hook pattern
- Updated architecture overview

**Next step**: Ready to archive with `/osx-archive`.

On no updates needed:

## Documentation Current

Implementation doesn't require documentation updates:
- All changes are internal/refactoring
- Existing documentation covers functionality
- Changes are inferable from code structure

Ready to archive with `/osx-archive`.

On length warning:

## Documentation Warning

**AGENTS.md**: 420 lines (exceeds 300 line target)

Recommendations:
1. Move detailed patterns to subdirectory AGENTS.md files
2. Use progressive disclosure (reference, don't embed)
3. Convert verbose lists to tables

Proceed anyway, or address first?

Guardrails

  • DO: Preserve existing structure and sections
  • DO: Use tables for command/reference lists
  • DO: Confirm with user before writing changes
  • DON'T: Document standard patterns AI already knows
  • DON'T: Add verbose file-by-file descriptions
  • DON'T: Include tutorials, history, or generic advice
  • DON'T: Let files exceed 500 lines

Anti-Patterns to Avoid

Generic Advice

# BAD
- Follow coding best practices
- Write clean, maintainable code
- Test thoroughly

# GOOD (or skip entirely if standard)
- Run `npm run typecheck` after TypeScript changes
- Use `set -euo pipefail` for shell scripts

Verbose Descriptions

# BAD
- ThemeContext: This component provides theme state management
  using React Context API. It integrates with localStorage for
  persistence and supports system preference detection...

# GOOD
- `useTheme()`: Returns `{ theme, setTheme }` - see `src/contexts/ThemeContext.tsx`

Effectiveness Indicators

Positive Signs

  • AI follows new patterns without asking
  • File stays under 300 lines
  • No outdated or orphaned sections

Negative Signs (Fix Needed)

  • AI asks about documented items → improve clarity
  • File >300 lines → review and condense
  • File >500 lines → split immediately

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.