feat(patterns): add three critical reading lens patterns#2120
Open
OdinKral wants to merge 1 commit into
Open
Conversation
Adds a set of analytical reading lenses that apply distinct critical
theory traditions to any text. Unlike extraction patterns (summarize,
extract_wisdom), these produce framework-grounded analysis:
lens_stoic — philosophical lineage, intellectual tensions,
unasked questions; grounded in hermeneutics and
history of ideas
lens_deconstructive — binary oppositions, hierarchies, absences,
self-undermining moments; grounded in Derrida
and post-structuralist close reading
lens_rhetorical — ethos/pathos/logos/kairos, audience construction,
notable persuasion techniques; grounded in
Aristotle's Rhetoric and discourse analysis
Usage:
cat chapter.txt | fabric -p lens_deconstructive
yt URL | fabric -p lens_rhetorical
pbpaste | fabric -p lens_stoic
Each pattern works on any prose input: book chapters, articles, essays,
speeches, or transcripts.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds three analytical reading lens patterns that apply classical critical theory traditions to any prose input. These fill a gap in Fabric's pattern library: Fabric has many extraction tools (
extract_wisdom,summarize,analyze_paper) but nothing that applies a named intellectual framework as the analytical lens.Patterns
lens_stoic— Philosophical lineage and tensionslens_deconstructive— Binary oppositions and absenceslens_rhetorical— Ethos / pathos / logos / kairosUsage
Design principles
Each pattern:
These are the three most broadly applicable lenses. The framework is extensible — feminist, Marxist, postcolonial, and psychoanalytic lenses follow the same structure and could be added in follow-up PRs.
Test plan
echo "short text" | fabric -p lens_deconstructive— verify it runs and produces the expected sectionscat article.txt | fabric -p lens_rhetorical— verify ethos/pathos/logos sections are populatedcat philosophy_excerpt.txt | fabric -p lens_stoic— verify lineage and tensions sections🤖 Generated with Claude Code