---
name: tei-text-encoding
description: Encode texts following Text Encoding Initiative standards for digital editions, annotations, and scholarly apparatus
allowed-tools: Read, Grep, Write, Edit, Glob, Bash
graph:
  domains: [domain:humanities]
  specializations: [specialization:digital-humanities]
  skillAreas: [skill-area:document-processing, skill-area:parsing-data-formats, skill-area:docs-as-code]
  workflows: [workflow:peer-review-cycle]
  roles: [role:technical-writer, role:data-engineer]
---

# TEI Text Encoding

Encode texts following Text Encoding Initiative standards for digital editions, annotations, and scholarly apparatus.

## Overview

This skill enables encoding of texts using TEI XML standards. It encompasses document structure markup, scholarly annotation, critical apparatus encoding, and metadata documentation for digital humanities projects.

## Capabilities

### Document Structure
- Header encoding
- Text division marking
- Paragraph and line elements
- List and table encoding
- Figure and graphic references

### Scholarly Annotation
- Editorial interventions
- Commentary notes
- Cross-references
- Index entries
- Bibliography links

### Critical Apparatus
- Variant readings
- Witness documentation
- Apparatus entries
- Textual notes
- Stemmatic information

### Metadata
- TEI header completion
- Source description
- Encoding description
- Profile description
- Revision history

## Usage Guidelines

### Encoding Process
1. Analyze source document
2. Plan encoding strategy
3. Create TEI header
4. Encode document structure
5. Add scholarly annotations
6. Validate against schema
7. Document conventions

### TEI Best Practices
- Follow TEI Guidelines
- Use appropriate modules
- Maintain consistency
- Document customizations
- Validate regularly

### Quality Standards
- Schema compliance
- Encoding completeness
- Documentation clarity
- Reproducibility
- Sustainability

## Integration Points

### Related Processes
- Digital Archive Development
- Textual Criticism and Editing
- Text Mining and Distant Reading

### Collaborating Skills
- metadata-standards-implementation
- literary-close-reading
- archival-finding-aid-interpretation

## References

- TEI Guidelines
- TEI by Example tutorials
- Digital editing standards
- XML best practices


---
Source attribution: a5c-ai
Original project: https://github.com/a5c-ai/babysitter/blob/feb68abe397acc14f32b34984975c48fedba2b33/library/specializations/domains/social-sciences-humanities/humanities/skills/tei-text-encoding/SKILL.md
License: MIT
License information: https://opensource.org/license/mit
Original upstream instructions; downloaded from Mega AI Hub.

## Upstream license notice

# MIT License

Copyright (c) 2025 A5C AI

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.



# Mega AI Hub resource metadata

Creator / publisher: a5c-ai
Original project: https://github.com/a5c-ai/babysitter/blob/feb68abe397acc14f32b34984975c48fedba2b33/library/specializations/domains/social-sciences-humanities/humanities/skills/tei-text-encoding/SKILL.md
Attribution basis: Source repository record

Fields of work: Content & Media, Design, Education & Research, Marketing
Roles: Academic Writer, Content Marketer, Copywriter, Researcher, UX Writer
Specialties: API
Tools: Xml
Country applicability: Country not specified
Classification basis: Source catalog labels
Instruction SHA-256: dc2b4a57865165bc66d5ad7e4df1a2fafc851ea51977a88409a2db2616b16c54
