The four key concepts to the methodology of pragmatic analysis of text are deixis, presupposition, implicature and speech acts. They can be elaborated to figure out their contribution to the proposition of an utterance, its illocutionary force, and a wide range of effects the utterance may produce.
It depends very much on two things: first of all, what types of texts are you looking at? Spoken utterances, newspaper articles, plays? Secondly, there is a number of approaches within Pragmatics which you might like to consider - this, again, depends on the particular focus of your study. You could use a Gricean or neo-Gricean approach; you could look at politeness strategies (Brown & Levinson) or impolitness (Culpeper, Bousfield). You may also consider issue of coherence (Halliday and Hassan). Furthermore, you want to consider if you do a detailled analysis of a single text or whether you try and find general qualities (by using coprus linguistics).
Refs:
Grice, H. P. (1975). Logic and conversation. In Speech acts (pp. 41-58). Brill.
Sperber, D., & Wilson, D. 2. Three approaches to pragmatics. (in Researchgate)
Rühlemann, C., & Clancy, B. (2018). Corpus linguistics and pragmatics. Pragmatics and its Interfaces, 241-266.
Brown & Levinson (1987) Politneness. CUP.
Culpeper, J. (1996). Towards an anatomy of impoliteness. Journal of pragmatics, 25(3), 349-367.
Bousfield, D. (2010). Researching impoliteness and rudeness: Issues and definitions. Interpersonal pragmatics, 6, 101-134.
Halliday, M. A. K., & Hasan, R. (2014). Cohesion in English (No. 9). Routledge.
Several mechanisms are employed in pragmatic analysis to understand how speakers or writers communicate effectively. Key mechanisms include Grice's Maxims (of quality, quantity, relevance and manner), implicature, presupposition, speech acts, context, politeness theory, and relevance theory. These mechanisms help uncover the implicit meaning, intentions, and strategies behind linguistic expressions in texts or spoken discourse.
I beg your pardon!!! Pragmatics is mainly concerned with analyzing discourse rather than texts. It looks into discourses as used by language users in relation to their context and contextual factors controlling those discourses. Moreover, it utilizes certain pragmatic-theory-based mechanisms including: Speech acts, conversational implicatures, presupposition and others to for discourseal analyzing purposes.