Skip to content

Commit 03fae04

Browse files
codepuncherCopilot
andcommitted
docs: remove SEO section (not needed)
Removed SEO Considerations section (84 lines): - Meta tags guidance - Heading hierarchy - URL structure - Structured data - Image optimization - Internal linking Also removed SEO reference from Before Committing checklist. File: 2,478 → 2,392 lines (-86 lines, -3.5%) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent e06b9ff commit 03fae04

1 file changed

Lines changed: 0 additions & 86 deletions

File tree

shell/copilot-instructions.md

Lines changed: 0 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -1367,7 +1367,6 @@ git diff main --name-only --diff-filter=ACMR | \
13671367
1. Verify all tests pass (if applicable)
13681368
2. Check for performance impact (see Performance Checks below)
13691369
3. Check accessibility if UI changes (see Accessibility below)
1370-
4. Check SEO impact if content/meta changes (see SEO below)
13711370

13721371
### Dependency Updates
13731372

@@ -1554,91 +1553,6 @@ $all_meta = get_post_meta($post_ids, 'key'); // Single query
15541553

15551554
**Quick check:** Run Lighthouse accessibility audit in Chrome DevTools
15561555

1557-
### SEO Considerations
1558-
1559-
**Check SEO impact when:**
1560-
- Changing page titles or meta descriptions
1561-
- Modifying URL structures
1562-
- Adding/removing content
1563-
- Changing heading hierarchy
1564-
1565-
#### 1. Meta Tags
1566-
```php
1567-
// Ensure proper meta tags exist
1568-
<title>Page Title | Site Name</title>
1569-
<meta name="description" content="Page description 150-160 chars">
1570-
1571-
// Use Yoast SEO or Rank Math if available
1572-
```
1573-
1574-
#### 2. Heading Hierarchy
1575-
```php
1576-
// One H1 per page (usually page title)
1577-
<h1>Main Page Heading</h1>
1578-
1579-
// H2 for major sections
1580-
<h2>Section Heading</h2>
1581-
1582-
// H3 for subsections
1583-
<h3>Subsection</h3>
1584-
1585-
// Don't skip levels (h1 -> h3 is wrong)
1586-
```
1587-
1588-
#### 3. URL Structure
1589-
```bash
1590-
# Good URLs:
1591-
/blog/post-title
1592-
/products/category/product-name
1593-
1594-
# Avoid:
1595-
/p?id=123
1596-
/page.php?category=5&post=789
1597-
```
1598-
1599-
#### 4. Structured Data
1600-
```php
1601-
// Add schema.org markup for rich results
1602-
// Use JSON-LD format
1603-
1604-
<script type="application/ld+json">
1605-
{
1606-
"@context": "https://schema.org",
1607-
"@type": "Article",
1608-
"headline": "Article Title",
1609-
"datePublished": "2026-02-27"
1610-
}
1611-
</script>
1612-
```
1613-
1614-
#### 5. Image Optimization
1615-
```php
1616-
// Use descriptive filenames
1617-
// good: red-nike-running-shoes.jpg
1618-
// bad: IMG_1234.jpg
1619-
1620-
// Compress images
1621-
// Use WebP format when possible
1622-
// Add width/height attributes
1623-
```
1624-
1625-
#### 6. Internal Linking
1626-
- Link to related content
1627-
- Use descriptive anchor text
1628-
- Ensure no broken links
1629-
1630-
**Quick SEO checks:**
1631-
```bash
1632-
# Check for broken links
1633-
# Use plugin like Broken Link Checker
1634-
1635-
# Check robots.txt
1636-
curl https://site.com/robots.txt
1637-
1638-
# Check sitemap
1639-
curl https://site.com/sitemap.xml
1640-
```
1641-
16421556
## Bash Scripting Standards
16431557

16441558
### Variable References

0 commit comments

Comments
 (0)