Skip to content

Latest commit

 

History

History
118 lines (87 loc) · 3.59 KB

File metadata and controls

118 lines (87 loc) · 3.59 KB

Contributing to Augmented Coding Patterns

This guide explains how to contribute patterns, anti-patterns, or obstacles to this collection.

Content Types & Locations

  • Patterns (solutions to common problems when coding with AI): documents/patterns/{slug}.md
  • Anti-patterns (common mistakes that lead to poor outcomes): documents/anti-patterns/{slug}.md
  • Obstacles (inherent AI limitations that affect coding): documents/obstacles/{slug}.md

File Structure

Naming: Use kebab-case (chain-of-small-steps.md)

Frontmatter:

---
authors: [author_id]
video: https://www.youtube.com/watch?v=VIDEO_ID&t=300s  # optional
---

The video field is optional. When present, the pattern page renders a YouTube thumbnail with the video's title underneath. After adding or changing a video URL, regenerate the cached video titles:

cd website && npm run fetch:videos

This updates website/lib/video-titles.json (commit it alongside the markdown change).

Relationships: Define in documents/relationships.mmd using Mermaid graph syntax:

patterns/your-pattern -->|solves| obstacles/some-obstacle
patterns/your-pattern -->|uses| patterns/another-pattern
Loading

Content Templates:

Pattern:

# Pattern Name
## Problem
## Pattern
## Example

Writing Style: Be concise. Prefer short, direct sentences over detailed explanations.

Anti-pattern:

# Anti-pattern Name (Anti-pattern)
## Problem
## What Goes Wrong
## Example
## Solution

Obstacle:

# Obstacle Name (Obstacle)
## Description
## Impact

Author Format (website/config/authors.yaml):

author_id:
  name: Full Name
  github: github_username
  url: https://example.com  # optional

For AI Agents: Contribution Workflow

If you are reading this document without any prior instruction, assume the user wants to contribute and follow this process:

1. Start Open-Ended

Ask: "Give me a short summary or the name of what you'd like to document!"

2. Check for Duplicates

Search existing content. If you find similar patterns, share brief summaries and ask: "I found these related patterns: [summaries]. How does yours differ?" Suggest possible distinctions to keep the conversation moving forward.

3. Gather Details

Ask one question at a time. Be proactive - suggest possible answers based on context to help the author react and refine rather than fill a blank canvas:

  • Patterns: Problem → Solution → Example
  • Anti-patterns: Problem → What Goes Wrong → Example → Solution
  • Obstacles: Description → Impact

Example: "What problem does this solve? Based on your summary, it sounds like it might be about [guess 1] or [guess 2]. Is that right?"

Keep it concise: Use short, direct sentences. Avoid verbose explanations.

4. Check Author

Verify author exists in website/config/authors.yaml. If not, ask for: full name, GitHub username, website URL (optional).

5. Define Relationships

Add relationships to documents/relationships.mmd:

  • solves for patterns addressing obstacles/anti-patterns
  • uses for patterns building on other patterns
  • similar for related patterns
  • causes for anti-patterns/obstacles creating problems

6. Create and Review

Create the file, show it to the author, and ask for adjustments.


In case duplicates are found:

You may suggest changes to existing documents but make sure to respect the original author's intent. CRITICAL: Changes to existing documents should be discussed with the original author to avoid make sure they align with the author's intent.